problem with the statement select

I want to view records that start with the letter D for a particular ID of a table called THE. To do this, I wrote the select statement with as operator.but when duplicates were found in the table it would not display. for eaxample
create table tea(id number(40),f_name varchar2(150));

INSERT INTO tea ( ID, F_NAME ) VALUES ( 
832, 'Magnolia St. #12'); 
INSERT INTO tea ( ID, F_NAME ) VALUES ( 
832, 'Magnolia St. #10'); 
INSERT INTO tea ( ID, F_NAME ) VALUES ( 
1909, ' Delaware Ave.'); 
INSERT INTO tea ( ID, F_NAME ) VALUES ( 
1909, 'Delaware St.'); 
INSERT INTO tea ( ID, F_NAME ) VALUES ( 
832, 'Mangolia'); 
INSERT INTO tea ( ID, F_NAME ) VALUES ( 
832, 'Monolia'); 
INSERT INTO tea ( ID, F_NAME ) VALUES ( 
1909, 'Delaware'); 
INSERT INTO tea ( ID, F_NAME ) VALUES ( 
1909, 'Mandea'); 
commit;

select * from tea order by id;

    ID F_NAME
------ ------------------------------
   832 Magnolia St. #12
   832 Magnolia St. #10
   832 Mangolia
   832 Monolia
  1909  Delaware Ave.
  1909 Delaware St.
  1909 Delaware
  1909 Mandea

 now when i try with letter 'M' for 832 it is displaying the all the records starting with M
select f_name from tea where upper(f_name) like upper('m%') and id=832;

F_NAME
----------------------------
Magnolia St. #12
Magnolia St. #10
Mangolia
Monolia

but when i tried with D it is not displaying  Delaware Ave.

select f_name from tea where upper(f_name) like upper('d%') and id=1909;

F_NAME
-------------
Delaware St.
Delaware
I'm unable to display folder Delaware Ave. , for the id of 1909. I need display this folder also.
What could be the reason it is display for "M" and showing not "d".
any suggestions please?
I use 9i

Because there is a space character before Delaware Ave
Watch your insert statement

INSERT INTO tea ( ID, F_NAME ) VALUES (
1909, ' Delaware Ave.'); 

To take

INSERT INTO tea ( ID, F_NAME ) VALUES (
1909, 'Delaware Ave.'); 

And it should work

- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev a. (10g OCP)
http://kamranagayev.WordPress.com

Tags: Database

Similar Questions

  • Hello I am a student and I have a problem with the tool Selection (V). When I opened the file AI CC with CS6 selection tool doesn't allow me to change the selection. What can I do? (I have reinstall AI CC and the problem persists)

    Hello I am a student and I have a problem with the tool Selection (V). When I opened the file AI CC with CS6 selection tool doesn't allow me to change the selection. What can I do? (I have reinstall AI CC and the problem persists)

    Ivan,

    If it's on the rectangular objects, you may have encountered the bug Rectangle Live which is limited to the MAC versions from 10.7 and 10.8, but not of 10.9 (Mavericks) or 10.10 (Yosemite). If all goes well, the bug will be fixed soon.

    Thus, a switch for the Mavericks or Yosemite with a reinstall might be the way to solve it here and now.

    To get around it, in each case, it is possible to develop direct Rectangles to get the normal old shaped rectangles or Pathfinder > unit, or use the scale tool or the free transform tool.

    A more permanent way round that is to create normal old shaped rectangles, after running the free script created by Pawel, see this thread with download link:

    https://forums.Adobe.com/thread/1587587

  • Problem with the State showed up in BB10

    Hello

    After the upgrade of my DevAlpha to the latest version, 10.0.9.1675, I have problems with 2-State buttons.

    Example code:

    #myBtn{
        background-image: url(btn/myBtn.png);
        background-repeat: no-repeat;
        background-position: 0px 0px;
    }
    #myBtn:hover{
        background-position: 0px -124px;
    }
    

    So, when I click the button it stay frozen until steady-state, does not return to the default position. All my apps of ww are affected by this problem.

    Anyone can attempt to reproduce this problem?

    If so, what is the solution?

    This is sort of the standard: hover behaviour I noticed in mobile browsers. Since then no cursor, hover is only simulated.

    The simplest solution (and the one I use in my projects) is to use: active instead of: hover.

    #myBtn:active{
        background-position: 0px -124px;
    }
    
  • Problem with the direct Selection in Illustrator CS5.1 tool

    Lost my ability to transform a selection with the direct Selection tool. When I select an element, I get not all my little manages to make a transformation directly on the object... have lost patience, trying to find the problem.

    View--> edges of the show.

    Mylenium

  • Problem with the scene selection menu

    I have two pages of scene selection menu.  The first page works fine but I have problems with the second page.  The highlite flashes market either on stage or on the main menu or on the arrow to return to the previous page.  So that he can move or do anything, the only way is to click on it when it flashes on.

    Is it possible to add buttons so I can have all my selections on 1 page?

    Yes. As Ann says you can do in Photoshop. As she points out, carefully study the structure of the layer of one of the Menus library. The small symbols at the beginning of the names of the layers are very important. Also, explore the different layers in the button layer sets. They have too specialized for naming conventions that must be followed and don't forget to turn off the visibility for any layer to highlight (highlight the secondary image button). It will be lit, when your user has access to this button.

    Also, is there a limit to how many buttons can have on a Menu by the DVD specifications. IIRC, it's 32 for 4:3 Menus and 16 for 16:9 Menus. Not sure if these exact limits apply to Menus of comics, but we are talking about DVD-video here and not comics.

    In addition, when you look at the Menu. PSD in Photoshop, special attention to the order button layer sets. Button #1 will be at the bottom of the Palette layers with button #2 above and so on. He also established the button routing, which is what happens when you press the arrow keys on a remote DVD player.

    In, you can edit routing button to do what you want. I think the button routing is only automatic in PrPro. You can check this. Unfortunately, I used PrPro to authoring only rarely and still dependent on the Auto-Play everything but simple DVD-Videos.

    Good luck

    Hunt

  • Problem with the tool Selection stuck in Mode 'deselect '.

    Hello

    I'm having some trouble with my Adobe Photoshop elements 11.  I was using the program to work on multiple images earlier (png or JPEG) and for some reason, the selection tool found in 'Deselect' mode. The selection circle is filled permanently with the symbol 'Less' and will do anything with the first click - Select only then it deselects everything. I tried pressing and pressing the ALT key, I tried to close the program, I even tried to restart my computer none of this is the resolution of the problem. I'll have to reinstall the whole program, or are there other ideas out there?

    With the selected tool go to the options bar (bottom right) and click the menu drop-down menu icon - see image below - choose Reset tool.

  • Problem with the States and component in flex

    I am trying to build this flex like this application

    ExpertDiscoverySystem.mxml

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = minHeight = "1280" '960' xmlns:component = 'rate' currentState 'SearchStart' = >
    < s:layout >
    < s:BasicLayout / >
    < / s:layout >
    < s: states >
    < name s: State = "SearchName" / >
    < name s: State = "SearchDomain" / >
    < name s: State = 'SearchResult' / >
    < name s: State = "SearchStart" / >
    < / s: states >
    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >

    <!-< fx:Script >
    <! [CDATA]
    private void changeState (): void {}
    this.currentState = 'SearchResult ';
    searchpage.searchTerm.text = searchpage.getResult ();
    }
    []] >
    < / fx:Script >->

    "" < XY = '0' mx:Image = '0' source = '... / image/background.jpg "includeIn ="SearchDomain, SearchName, SearchStart"/ >
    <!-< s:TextInput '120,65' = x y = "507.8" width = "806" id = "searchText" includeIn = "SearchDomain, SearchName" / >
    < s:Button "951" = x y = '508' label = "Find it!" id = "Search" includeIn = 'SearchDomain SearchName'-click = "" / >-->
    < mx:LinkButton label = "Name" fontSize = "36" = "Verdana" includeIn = fontFamily click "SearchStart" = "currentState ="SearchName"" color = "#CE1717" enabled = "true" x = "383" y = "556" fontWeight = "bold" / >
    < mx:LinkButton fontSize = fontFamily "36" = "Verdana" click = "currentState ="SearchDomain"" includeIn = "SearchStart" color = "#CC1C1C" label = "Domain" '656' = x y = "555" fontWeight = "bold" / > "
    "< includeIn = 'SearchResult' x = '0' mx:Image = '0' source = '... /image/BackgroundSearch.jpg"/ >
    < s:TextInput = 'SearchResult' x = "542.1" includeIn = "47.6" width = "576" / >
    < s:Button = 'SearchResult' x = "1132" includeIn = '47.1' label = 'Search' id = 'Search2Button' / >
    < includeIn: search for components = "SearchDomain" x = "250" y = "420" >
    < / research components: >
    < component includeIn: searchResult = 'SearchResult' id 'Advanced' = x = "29" y = "115" >
    < / component: searchResult >
    < includeIn: search for components = "SearchName" x = "250" y = "420" >
    < / research components: >

    < / s:Application >

    and the component

    Search.MXML

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Group ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" width = "800" height = "400" contentBackgroundAlpha = '0,0' xmlns:component = 'rate' >
    < s:layout >
    < s:BasicLayout / >
    < / s:layout >

    < fx:Declarations >

    <! - Place non-visual elements (e.g., services, items of value) here - >
    < component id: searchResult = searchedTerm = "{"Advanced"searchTextInput.text}" >
    < / component: searchResult >
    < / fx:Declarations >
    < fx:Script >
    <! [CDATA]
    private void changeState (): void {}
    this.currentState = 'SearchResult ';
    searchpage.searchTerm.text = searchpage.getResult ();
    }
    []] >
    < / fx:Script >

    < s:TextInput width = "572" id = "searchTextInput" x = "49" y = "83" / >

    < s:Button label = 'find it!' id = 'search"click =" changeState () ""652"= x y ="84"/ >"
    < / s:Group >

    and searchResult.mxml

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Group ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" width = "900" height = "800" >
    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >

    < fx:Script >
    <! [CDATA]
    [Bindable]
    public var searchedTerm:String;
    public var searchCriteria:String;
    public function getResult (): String
    {
    Return searchedTerm;
    }
    []] >
    < / fx:Script >
    < s:Label x = '6' y = '13' text = "" you searched: "fontSize ="18"/ >"
    < s:Label = "173" x = "13" fontSize = "18" id = "searchTerm" color = "#FF0000" / >

    < / s:Group >

    The problems goes like this. I need to access my main of my search.mxml component mxml application state 'SearchResult', with my code view, it is impossible to access at all because the State 'SearchResult' was not include the search.mxml component

    Is there anyway to access the State of my main application of my component?

    Hello

    Try to use FlexGlobals.topLevelApplication.currentState = 'SearchResult '; in your Search.mxml component.

    Thank you

    Jean Claude

  • problem with the States

    Hello

    in my application, I would like something code you see in the code.

    but this is not possible, because now I have two buttons with the id 1.
    What is the best way to solve this problem? especially when you have a lot of buttons? I mean, I need the id when I want to withdraw the child...

    Thank you!

    I think you need to rethink your statements. You try to add the same button in two States, which should not be necessary. You can base a State to another State, more specifically.

    Also, you cannot use numbers as identifiers.

  • problem with the state machine

    Hello! I have a VI to monitor a storage tank. I tried to do by creating a simple state machine that changes the value(on/off) of some faucets based on 2 conditions:

    -When a certain temperature reaches a predetermined value AND its derivative is<0, the="" state="" must="" change="" from="" on="" to="">

    -When some time passes, the State should change from off to on.

    Unfortunately I can't get this working as it never changes state (by example, if I start with him always stay on 'on' and vice versa).

    Could you please tell me what I'm doing wrong? I enclose the screenshots of the 2 States.

    Thank you!

    Sounds like your shift which could not not be wired properly.

  • Problem with the saved selections

    When you save a selection as a new channel, why he suddenly create a document without unreleased track rather than economy within the same doc also normally? (Under the drop-down list of Document, name of the current document is even more displays!)

    It might be a photoshop document unique that your student had reached the limit of registered channels which may have, and that is why the Save selection dialog box only allowed the student to save to a new document.

    I think the limit is something like 53 chains.

  • Problem with the property .selected

    I do a test and there are several boxes option that each have an instance name of option1_mc, option2_mc, etc. I want to do dessu so when the user clicks the next button, it saves if the right box has been enabled (true) or not (false). Then I would like to make the property selected for the false button, so it is not selected for the issue of the nest. Thank you.

    The
    option1_mc. Selected = false;
    option2_mc. Selected = false;
    option3_mc. Selected = false;
    option4_mc. Selected = false;
    option5_mc. Selected = false;
    option6_mc. Selected = false;

    the code is fine, but

    If ((«option"+ allAnswers [current_question + 1] +"_mc") .selected == true)

    is not valid.

    Try changing:

    If (RadioButton (getChildByName ("option" + allAnswers [current_question + 1] + "_mc")) .selected == true)

    also, why are you using suffix _mc on radiobuttons? This isn't a mistake, but it is intended for the movieclips. Can I just name them option1, option2 etc.

  • Problem with the simple Select statements

    Hi experts,

    I have with SQL Server and I'm going to hurt when I use the similar syntax in sqlplus to query an Oracle table.

    For example... my table contains column SCHID SET in the numeric form. Table has thousands of lines and the SCHID column is filled.

    Select TOP 100 AFTSCHAUXDATA SCHID;

    Get the "Word FROM key not found where expected" error

    Select DISTINCT from AFTSCHAUXDATA SCHID;

    Download "no selected lines.

    Can someone help me please?

    Thank you, John

    Can someone tell me how to find the names of the 20 largest tables (bigger which means that most of the files)?

    Once you have updated statistics on the table, you can query the DataDictionary: USER_TABLES/ALL_TABLES/DBA_TABLES.
    I'm assuming that user_tables will do:

    select *
    from ( select table_name
           ,      num_rows
           from   user_tables
           order by num_rows desc nulls last
         )
    where rownum <= 20; 
    

    You can find more explanations about the DataDictionary in the Oracle Online Documentation.
    Just do a quick and easy search
    http://www.Oracle.com/pls/db112/homepage
    or
    http://www.Oracle.com/pls/db102/homepage
    Depending on your version of the database.

  • Insert the problem with the statement

    case 1:

    declare
    Start
    Insert into t4 values (1);
    commit;
    Insert into t4 values ('test');
    commit;
    end;

    invalid value 1 of 1 line inserted with no identifier;

    case 2:

    declare
    Start
    Insert into t4 values (1);
    commit;
    Insert into t4 valuess ('test');
    commit;
    end;

    any line not inserted value 1 with invalid identifier;

    question is why difference between over case

    Hello

    Jhon says:

    Thnaks for the previous comment.

    Update Q4 set c1 = c1 * 2;   Why this statement fail while we and rename c32 column c1-exceute immediate statement

    If, at the time of compilation, the single column of the table is c3, the UPDATE statement will not compile.  So really, you must change the name of column in PL/SQL, then use EXECUTE IMMEDIATE to do the UPDATE.

    This is an example of why create or modify tables in PL/SQL is a bad idea.

  • a drawing space on a simple IF statement with the statement Select

    Hello

    I'm writing an IF statements as such

    Val1 IF (select x from tbla) then
    to do this
    on the other
    do this
    end if ';

    Is it possible to have a select line on the IF condition?

    Version 11.1.0.7

    The Gunners wrote:
    Hello

    I'm writing an IF statements as such

    Val1 IF (select x from tbla) then
    to do this
    on the other
    do this
    end if ';

    Is it possible to have a select line on the IF condition?

    Version 11.1.0.7

    No, but you can do something like that as easily.

    declare
       l_count  number(1);
    begin
    
       select
          count(*)
       into
          l_count
       from
          dual
       where exists
       (
          select
             null
          from
             table_name
          where col_name = val
       );
    
       if l_count > 0
       then
          ....
       else
          ...
       end if;
    
    end;
    /
    
  • Problem with the States of text frame

    I'm trying to create a text button simple reversal. I assigned States, and it seems to work unless I put normal transparent (text & fill), which is what I want.  After that I changed the normal state to transparency, the button is not visible in a State in preview mode before.  Any ideas?

    An opaque object to 0% in the browser receives any mouse down or reversal events. Set the opacity to 1%. It will not always be visible, but 1% opaque, he will answer to rollover and mouse down events.

Maybe you are looking for

  • Cannot open iPhoto since upgrading to OS X El Capitan, I can't find an update that works &gt;?

    I recently updated my computer to OS X El Capitan, I cannot now open or access my iPhoto, or I can't find compatible update.  What should I do?  I just lost access to all my photos?

  • Journ.e Touch - where's the support?

    Hello. I'm very disgusting by Toshiba. There is no such thing as a Journ.E Touch support!It's impossible to reinitialize the object... If it stops to work, or crash Windows CE, you can throw! More than a week I'm looking for a solution, I am writing

  • Sound crackling of the new Satellite L500-1XC right speaker

    Hello I bought a new Toshiba laptop yesterday and started from today afternoon, but since then, I have my speaker crackling noise right I want to know if there is any problem or it s due to moisture.

  • Spontaneous zoom auto/output problem

    In almost ALL applications (MS Word, Notepad, Wordpad, Ezplorer Internet, MSN chat window, MS Paint, etc.) in the window where text or graphic is displayed and can be enlarged or back, or the user can change the font sizes, sometimes I encounter the

  • Default folder icon

    Please tell me how to change the default icon for all folders in Windows 7.  Why is it so so HARD EVERY thing with Windows 7?