Problem with Like Keyword

Display the last name of all employees who have an a and an e in their last name using like keyword in oracle 10g...............

870737 wrote:
Display the last name of all employees who have an a and an e in their last name using like keyword in oracle 10g...............need to utilize "OR" in WHERE clause

Similar Messages

  • Problems with ABAP Keyword Documentation after install Internet Explorer 7

    After install Internet Explorer 7 I see left frame with tree in ABAP Keyword Documentation, but don't see right frame.
    I find note 857216, but it not approach.
    Product Version SAP R/3 ENTERPRISE 47X200
    SAP GUI 620 Final Release 6206.6.62.970
    Internet Explorer 7.0.5730.11

    Once the page is opened, try to refresh the page a few times. I have seen this couple of times but just refreshing the same will solve the problem I believe.
    Regards
    Kathirvel

  • Problem with metadb keyword in profile

    I am new to use of mirroring during Jumpstart ( I just upgraded my Jumpstart server to S9-09-04), and can't get past an error that says:
    Error in file "Profiles/us087.profile", line 5
    metadb c0t0d0s7 size 8192 count 3
    ERROR: Invalid keyword
    Here is the profile in question:
    install_type initial_install
    system_type standalone
    partitioning explicit
    cluster SUNWCXall
    metadb c0t0d0s7 size 8192 count 3
    metadb c0t2d0s7 size 8192 count 3
    filesys mirror:d0 c0t0d0s0 c0t2d0s0 5120 /
    filesys mirror:d10 c0t0d0s1 c0t2d0s1 2048 swap
    filesys mirror:d20 c0t0d0s3 c0t2d0s3 5120
    filesys c0t0d0s4 free
    filesys c0t2d0s4 free
    What am I missing?
    This server was upgraded from Solaris 8 using Live upgrade, are there new packages that I need to install? It should be something simple since I can't seem to find any messages regarding this.

    <b><font color="red">pmostrom</b></font> <font color="navy">I had this problem but you need to verify which version of check you are using. I initially tried to use metadb with version 1.64 but this failed with your error.
    I then found a copy of 1.65 on a 4/04 CD under Misc which will accept metadb as a keyword. There are other issues with this version and you should look for a newer version than this.</font>

  • Problem with LIKE in Cursor

    I have table week_tab with data
    week_num bkg1 bkg2 bkg_type
    1     10     20     at_prod
    2     40     10     at_serv
    3     30     20     prod
    2     20     60     at_prod
    1     10     50     at_serv
    1     20     80     at_net
    3     10     30     at_net
    I'm trying to put this query in a cursor
    SELECT SUM(bkg2), bkg_type
    FROM week_tab
    WHERE bkg_type LIKE 'at%'
    GROUP BY bkg_type;
    PROCEDURE get_bkg_tot(
    p_colName IN VARCHAR2,
    p_refCursor OUT ref_cursor) AS
    v_query VARCHAR2(4000);
    BEGIN
    v_query := 'select sum('||p_colName||'), bkg_type
    from week_tab
    where bkg_type like : x
    group by bkg_type';
    OPEN p_refcursor FOR v_query USING 'at%';
    END;
    PROCEDURE get_total_val AS
    v_refCursor ref_cursor;
    v_sum NUMBER;
    v_week NUMBER;
    v_total NUMBER := 0;
    v_colName STRARRAY := STRARRAY ('BKG1','BKG2');
    BEGIN
    FOR i IN v_colName.FIRST .. v_colName.LAST LOOP
    get_bkg_tot ('bkg2', v_refcursor);
    LOOP
    FETCH v_refCursor
    INTO v_sum, v_week;
    EXIT WHEN v_refcursor%NOTFOUND;
    v_total := v_total + v_sum;
    DBMS_OUTPUT.PUT_LINE ('Week '|| v_week||' : '|| v_sum);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE ('Total Bookings Sale :'|| v_total);
    END LOOP;
    END get_total_val;
    When I tried to execute get_total_val, I'm getting
    ORA-01722: invalid number
    ORA-06512: at "SCOTT.GET_TOTAL", line 45
    ORA-06512: at line 2
    What could be the error?
    Thanks in advance

    Hi,
    After corrected fetch into clause...
    CREATE OR REPLACE PACKAGE BODY GET_TOTAL AS
       PROCEDURE get_week_total(p_colName   IN VARCHAR2,
                                p_refCursor OUT ref_cursor) AS
          v_query VARCHAR2(4000);
       BEGIN
          v_query := 'SELECT SUM(' || p_colName ||
                     '), week_num FROM week_tab GROUP BY week_num ORDER BY week_num';
          OPEN p_refcursor FOR v_query;
       END get_week_total;
       PROCEDURE get_bkg_tot(p_colName   IN VARCHAR2,
                             p_refCursor OUT ref_cursor) AS
          v_query VARCHAR2(4000);
       BEGIN
          v_query := 'select sum(' || p_colName || '), WEEK_NUM ';
          v_query := v_query || 'from week_tab ';
          v_query := v_query || 'where bkg_type like :x ';
          v_query := v_query || 'group by week_num';
          OPEN p_refcursor FOR v_query
             USING 'at%';
       END;
       PROCEDURE get_total_val AS
          v_refCursor ref_cursor;
          v_sum       NUMBER;
          v_week      NUMBER;
          v_total     NUMBER := 0;
          v_colName   STRARRAY := STRARRAY('BKG1',
                                           'BKG2');
       BEGIN
          FOR i IN v_colName.FIRST .. v_colName.LAST LOOP
             get_bkg_tot(v_colName(i),
                         v_refcursor);
             LOOP
                FETCH v_refCursor
                   INTO v_sum, v_week;
                EXIT WHEN v_refcursor%NOTFOUND;
                v_total := v_total + v_sum;
                DBMS_OUTPUT.PUT_LINE('Week ' || v_week || ' : ' || v_sum);
             END LOOP;
             DBMS_OUTPUT.PUT_LINE('Total Bookings Sale :' || v_total);
          END LOOP;
       END get_total_val;
    END GET_TOTAL;The output is:
    Week 1 : 40
    Week 2 : 60
    Week 3 : 10
    Total Bookings Sale :110
    Week 1 : 150
    Week 2 : 70
    Week 3 : 30
    Total Bookings Sale :360Regards,

  • Named query problem with "like" statement

    I'm having issues with a named query that contains a 'like' statement in it. I have other named queries that have like statements that have hardcoded like values in them that work fine.
    (i.e. select * from foo where foo.col1 like 'foo%' )
    But when the like value to be tested is a parameter, it doesn't seem to work at all, no matter what variation i've tried, other than no wildcards.
    (i.e.
    this DOES work
    select * from foo where foo.col1 like #fooParm
    this DOES NOT work
    select * from foo where foo.col1 like '%#fooParm%'
    Any suggestions on how to get this to work?
    Thanks in advance

    Try building your select statement in a different way.
    Instead of:
    select * from foo where foo.col1 like '%#fooParm%'
    Try something like:
    select * from foo where foo.col1 like '#fooParm'
    And include the wild cards in the parameter.
    i.e. if fooParam was 'abc', make fooParm = '%abc%'

  • Problem with LIKE parameter in SQL

    Hi there,
    I got some problem trying to execute a query. Mainly the idea is that the user can choose the itemcode or part of it, thats why I use the Like operator. I try different way of using the LIKE operator,based on other topic, but still I don't get out.
    I post my query, hoping that somebody can help me (the LIKE Clause you see is one of the last I tried)
    SELECT DISTINCT ItemCode,
         (CASE WHEN WhsCode = '01' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag01,
         (CASE WHEN WhsCode = '02' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag02,
         (CASE WHEN WhsCode = '03' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag03,
         (CASE WHEN WhsCode = '04' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag04
    FROM OITW  WHERE(OnHand-IsCommited+OnOrder)>0 AND ItemCode Like '%%' + '[%itemC]' + '%%' ORDER BY ItemCode
    Waiting for your kind reply
    Rgds
    Roberto

    I think that itemc is some variable. You should creaqte the string of query as
    SELECT DISTINCT ItemCode,
         (CASE WHEN WhsCode = '01' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag01,
         (CASE WHEN WhsCode = '02' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag02,
         (CASE WHEN WhsCode = '03' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag03,
         (CASE WHEN WhsCode = '04' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag04
    FROM OITW  WHERE(OnHand-IsCommited+OnOrder)>0 AND ItemCode Like '%' + itemC + '%' ORDER BY ItemCode
    the string at the end should be like
    SELECT DISTINCT ItemCode,
         (CASE WHEN WhsCode = '01' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag01,
         (CASE WHEN WhsCode = '02' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag02,
         (CASE WHEN WhsCode = '03' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag03,
         (CASE WHEN WhsCode = '04' THEN (OnHand-IsCommited+OnOrder) ELSE 0 END) AS DispMag04
    FROM OITW  WHERE(OnHand-IsCommited+OnOrder)>0 AND ItemCode Like '%part_of_code%' ORDER BY ItemCode
    hope it helps

  • Problem with static keyword

    I faced Problem while using static keyword in Netbeans 6.5

    'static' doesn't exist anymore in JavaFX Script. Instead, put your functions and variable definitions outside of your class. Then they will be script level, which is roughly equivalent to 'static' in Java.

  • Problem with LIKE operator in select query

    Hi,
    I want to compare one field using LIKE operator. But i m not able to do that.
    DATA: l_doctext type c value ''''.
    CONCATENATE l_doctext s_lbktxt-low '%' l_doctext INTO s_lbktxt-low.
    SELECT bukrs belnr gjahr blart bldat budat xblnr bktxt waers awtyp
                FROM bkpf INTO TABLE g_t_bkpf_labor
                FOR ALL ENTRIES IN g_t_bseg_unique
                WHERE bukrs = g_t_bseg_unique-bukrs
                AND belnr = g_t_bseg_unique-belnr
                AND gjahr = g_t_bseg_unique-gjahr
                AND blart = p_ldtype
                AND bktxt LIKE s_lbktxt-low.
    plz help. Am i dng something wrong.
    Value in s_lbktxt can be like 'TEA.....'

    hi ,
    check this program..
    tables:mara.
    data: begin of it_mara occurs 0,
          matnr like mara-matnr,
          meins like mara-meins ,
          mtart like mara-mtart,
          end of it_mara.
    select-options: s_matnr for mara-matnr.
          select matnr
                 meins
                 mtart
                 from mara
                 into table it_mara
                 where matnr like '%7'.
    sort it_mara by matnr.
    loop at it_mara.
    write:/ it_mara-matnr,
    it_mara-meins,
    it_mara-mtart.
    endloop.
    regards,
    venkat.

  • Constructor problem with super keyword

    When I try to compile this class, I get 1 error:
    C:\Program Files\Xinox Software\JCreatorV3\MyProjects\FixedDiameterCircle.java:6: cannot resolve symbol
    symbol : constructor CircleGUI (int)
    location: class CircleGUI
    super(100);
    ^
    1 error
    class FixedDiameterCircle extends CircleGUI
         FixedDiameterCircle()
              super(100);     
         }//end FixedDiameterCircle()
    public void setDiameter(int d)
    }//end class FixedDiameterCircle
    ---------Here's the CircleGUI.java-------
    import javax.swing.*; //import Swing components
    import java.awt.*; //import awt components
    import java.awt.event.*; //import event handlers
    public class CircleGUI implements ActionListener
    JTextField diameter = new JTextField(3); //text field for first name
    JTextField color = new JTextField(5); //text field for last name
    JButton button = new JButton("Draw"); //update button
    JPanel panel = new JPanel(); //panel for frame content pane
    JFrame frame = new JFrame("Draw"); //frame for window + title
    public CircleGUI()
    panel.add(new JLabel("Diameter")); //add a label to panel
    panel.add(diameter); //add first to panel
    panel.add(new JLabel("Color")); //add another label to panel
    panel.add(color); //add a last to panel
    button.addActionListener(this); //add a click listener to button
    panel.add(button); //add button to panel
    frame.setContentPane(panel); //set panel as frame's content
    frame.setSize(120, 120); //set frame size (width, height)
    frame.setVisible(true); //make frame visible
    }//end CircleGUI()
    public void actionPerformed(ActionEvent e)//executed when button is clicked
    int d = Integer.parseInt(diameter.getText()); //get diameter
    Circle circle; //declare Circle variable
    if(color.getText().length() == 0) //if no color entered in field
    {                                       //use JColorChooser below
    Color rgb = JColorChooser.showDialog(frame, "Choose a Color", null);
    if(rgb != null) //if Color rgb chosen
    circle = new Circle(d,rgb); //instantiate Circle from Color
    }//end if(color...
    else
    String c = color.getText(); //get color String
    circle = new Circle(d,c); //instantiate Circle from String
    }//end else
    }//end actionPerformed()
    public static void main(String[] args) //main method
    CircleGUI cGUI = new CircleGUI(); //instantiate CircleGUI
    }//end main()
    }//end class CircleGUI
    What's the problem?

    CircleGUI does not have a constructor that takes an int. You need to either add this to CircleGui:public CircleGui(int diameter) { /* do stuff */ } or just cal super() instead of super(int). Which one is better is left as an exercise for the reader.

  • Problem with Raise keyword

    exception
    when others then
    dbms_output.put_line('xxxxxx');
    dbms_output.put_line('xxxxx');
    raise;
    end;
    What is the use of Raise here, pls help, what does it do uin the exception part???

    Don't have the WHEN OTHERS exception here if we are not thinking of handling the exception.
    Go through this link : http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html
    And also the below example :
    SQL> declare
      2    n number;
      3  begin
      4    select level into n from dual
      5    connect by level <= 2;
      6  EXCEPTION
      7  WHEN OTHERS THEN
      8  dbms_output.put_line('Error : '|| dbms_utility.format_error_stack() || CHR(10) || dbms_utility.format_error_backtra
    ce());
      9  end;
    10  /
    PL/SQL procedure successfully completed.
    SQL> edi
    Wrote file afiedt.buf
      1  declare
      2    n number;
      3  begin
      4    select level into n from dual
      5    connect by level <= 2;
      6* end;
    SQL> /
    declare
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 4
    SQL>

  • Problems with Importing / Exporting Keywords and Meta Datas

    Hi to all!
    I recently upgraded to Aperture 3 and upgraded my referenced library.
    Today I opened the Keyword HUD and noticed some keywords splattered in my list, which seem to be any older ones, since the new numbering indicated that they are not applied to any pictures.
    So I deleted them.
    Than I noticed the <Imported Keywords> folder, opened it, and it contained also a large number of previous keywords. Also they seemed not to be in use, so I also removed them.
    Than I locked the Keyword HUD.
    Now my question: If I export a version, with the option for 'include metadata' ticked, and edit the version than in Photoshop, and after it, import it back into the Aperture library I do have the problem.
    I have tried 'Import Meta Datas' and and click 'Append'. Than it is recognizing the former keywords, which I would appreciate, but not as 'Imported Keywords'.
    If I would open the file w/ the External Editor and return it back, I guess I would not have this problem. Usually I do open the referenced RAW file, and import than the edited version back into Aperture. Keywords are stored in the Library, so I would not avail the former given keywords than, is that right?
    By the way are the keywords part of Meta Datas or not?
    Are there any workarounds?
    And had other people also problems with their keyword list after upgrading?
    Thank for any ideas / infos!
    Michael

    Added header to CSV and to Code
    $ImportFile = Import-Csv "C:\Users\username\Desktop\Scripts\Powershell\Epic\SCCM CI\Tags.csv" -Header Computer
    foreach ($Computer in $ImportFile){
    $path = "\\$Computer\c$\Epic\bin\7.9.2\Epic Print Service"
    $xml = select-xml -path "$path\EpicPullService.config.xml" -xpath //EpicPullService//Cleanup | Select -ExpandProperty Node
    if ($xml.ArchiveHours -eq '12' -and $xml.DeleteHours -eq '120') {
    $Compliance = $True
    }Else{
    $Compliance = $False
    } "$Computer","$Compliance" | Export-Csv "C:\Users\username\Desktop\Scripts\Powershell\Epic\SCCM CI\Results.csv"
    Results:
    select-xml : Cannot find path '\\@{Computer=SW1412-16985}\c$\Epic\bin\7.9.2\Epic Print Service\EpicPullService.config.xml' because it does not exist.
    At C:\Users\username\Desktop\Scripts\Powershell\Epic\SCCM CI\Check_PullServiceXML.ps1:4 char:8
    + $xml = select-xml -path "$path\EpicPullService.config.xml" -xpath //EpicPullServ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (\\@{Computer=SW...vice.config.xml:String) [Select-Xml], ItemNotFoundException
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SelectXmlCommand
    If it is not a CSV file then just get it with Get-Content
    Get-Content C:\Users\UserName\Desktop\Scripts\Powershell\Epic\SCCM CI\Tags.csv |
        ForEach-Object{
            $computer=$_
            $path ="\\$computer\c$\Epic\bin\7.9.2\Epic Print Service\\EpicPullService.config.xml"
    ¯\_(ツ)_/¯

  • Problems with keywords?,

    Hello everybody,
    Recently I updated my iPhone 4S to iOS 6.
    Since then I keep having problems with the keywords hardware.
    At sudden moment it stops working and how many times I keep trying the words won't come.
    Example;
    When I want a heart i type : wx
    Normally: Goodbye: wx '<3' ==> <3
    Now: Goodbye wx
    and there ain't no heart coming, I tried new keywords but they didn't work either.
    The only solution I have, is to restart my iPhone. But this is NOT DONE.
    I hope it's not a matter of waiting till iOS 6.1.
    If somebody has a solution, tip or a remark, you can answer me here or @ my email adress: [email protected]
    Thanks and greetz !

    Never mind! (I think) - it turns out that I had a metadata preset to include those keywords - I have since cleared that box and now none of those offending keywords show up

  • Problems with non-ascii keywords

    I have some problems with non-ascii keywords that makes the whole keyword feature useless for me. I don't know if I'm doing something wrong or if there something I'm missing completely.
    The problem is that when I enter something like "grön" iPhoto sometimes refuses me to type in "grön" on another photo and "eats" the "ö". And if I select the matching keyword from the popup list iPhoto has changed the originally "grön" to "gr¨ön" (if that comes out right on the web). Here are a few screenshots to show what happens
    If someone knows what happens I would really appriciate some hints on how to avoid this.
    Note that adding/editing keywords works just fine in Aperture.

    There is a long standing issue with iPhoto and non-ascii characters. I know of no solution.
    iPhoto menu -> Provide iPhoto Feedback and report it as a bug.
    Regards
    TD

  • I have a problem with my home butten, its working but when i press it, it seems like something is stuck in it. like sand or something like that, and this is the second time it happens to me with 2 devices. what can i do?

    Ok so first sorry for my english, Im not American.
    2 months ago i bought a new Iphone 4 device from my phone company, after a month something happened to the home butten, when i pressed it it felt like something stuck in it.. like sand or dirt.. but the home butten worked perfectly. so i went to the phone company and they told me that it is a problem and they replaced it with a new one. but after a week my iphone fell and something happened to him so i sold it to someone i know, and with that money i bought a new one from privet store (unlike the last time, when i bought my iphone in a big phone company) and in the begining it felt new, i didnt had any problems, but 2 days ago when i woke up i pressed the butten and i noticed that the problem with the home butten is back.. and i dont know what to do.. i mean like its not a big deal or something, it just that when i buy something new, i excpet it to be new, and i want to ejnoy it while its new.
    so i went to some guy i know and he told me that he will see what he can do, i paid him 130 Shekels (35$) and he told my that he replaced the butten with new one, but still it makes problems. it bothers me alot, because i pay almost 300 shekels per month (75$) and i expect from this device to be new.. and its killing me.
    now, i cant go to the phone company because thats not their device, and i know what the people in the privet store will tell me.. that its my fault and bla bla bla.. so what can i do? i cant spend any more money on this..
    its new.. for some reason this always happenes to me.. 3 devices, problems problems and problems..

    You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
    and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money..

  • Problem with iOS7 : I have a message on my screen "This phone is not registred as a developper phone..." or something like that, can you help me because I download the iOS7 Beta even if I was not a developper. Thank you very much if you help me.

    Problem with iOS7 : I have a message on my screen "This phone is not registred as a developper phone..." or something like that, can you help me because I download the iOS7 Beta even if I was not a developper. Thank you very much if you help me.

    JaillotJb wrote:
    I download the iOS7 Beta even if I was not a developper.
    if you downloaded it and are not a developer, then we are not allowed to help you here.  sorry.

Maybe you are looking for

  • SAFARI AND OTHER PROGRAMS ENDING UNEXPECTEDLY??

    Safari and other programs are ending unexpectedly, vuze is also doing it during downloads???? any solutions?

  • Recovered ipod nano won't turn on/off

    Our previous laptop died but we were able to transfer over itunes to the new laptop. itunes is working on the new laptop. I went to add holiday music to the ipod (first time plugging it into the new laptop) and when I plugged it in I got a message th

  • Merged clips problem

    I have a very odd problem. Some time ago I started a new project, from the beginning using premiere CC in a mac (not sure the version, but right now I'm at 8.1) with r3d video files (shot on red epic with no audio on AV clips) and wav audio files rec

  • RoboHelp does not recognize FrameMaker document

    I'm attempting to import a FrameMaker (version 8.0p266) document into RoboHelp HTML (version 7.00.145) and the following message appears: "Cannot import (filename). Make sure this is a valid FrameMaker document." It is a valid FrameMaker document tha

  • White pages in Acrobat Pro

    Coloured InDesign pages saved as PDF turn out to be white in Acrobat Pro? Only on MAC PRO OSX10.7.5. - Adobe CC