Question about ORDER BY

Using an ORDER BY, how can I sort VARCHAR2 values in a way it ignores the case (upper, lower)? At the moment al uppercase occurences are placed on top.
Thanx

HI,
BOth of the bolow will work fine,
because the order by is done after getting the result in the query execution plan.
select upper(user_name) from user_master_table order by
user_name;
OR
select upper(user_name) from user_master_table order by
upper(user_name);
regards,
khaleel

Similar Messages

  • Question about Order Online / Delivery

    Hi everyone,
    I am thinking about order a MBP online. But there has one thing which i worry about. Sorry about that if you think that question is stupid, but it is my first time to order something so expensive on the internet, so i am a bit worry
    Because I am a student and I live on my own.
    What will happen if the delivery is arrived, but I am not at home?
    P.S I live in England
    Thanks a lot

    Hi,
    My MBP has been scheduled for delivery today. I have taken the day off work for the delivery. I have just heared that it is going to be delivered tonight around 8pm. It seems that TNT have a policy that they do not deliver certain items during the working week as people are not at home. This may sound very good if you have not taken a day off to take delivery. Quite frankly I am a bit hacked off as I would like to use the machine for a job tomorrow and now will have to stay up late doing updates etc.
    Regarding delivery: I'm sure this is a reasonable policy, I would just have liked them to tell me yesterday ( when I phoned up) that delivery would not be until tonight so I could have gone out and earned some money today!!!
    Don't worry...you will get your machine!!
    Mark

  • Question about order by and rownum and subqueries.

    Can you explain why test 4 below results as it results- with returning no rows?
    Identificator "PKG_INTRA_CUSTOMER_SEARCH.NAME" is a package function, which returns value from a variable declared in package body, the function returns value 'e%'.
    Please note that tests 1-3 all returned data, but test 4 didn't. Why? My porpouse is that test 4 would also return data.
    1. Query without "rownum" and with "Order by" returns 2 records:
    select q.*--, rownum
                ,PKG_INTRA_CUSTOMER_SEARCH.NAME
             from
                select c.ID,
                   c.NAME,
                   c.CODE     
                from V_CUSTOMER c  
                where 1=1 and  lower(c.NAME) like PKG_INTRA_CUSTOMER_SEARCH.NAME 
                order by c.NAME, c.ID
                ) q
    10020     Ees Nimi     37810010237     e%
    10040     ewewrwe werwerwer          e%2. Query with "rownum" and without "Order by" returns 2 records:
    select q.*, rownum
                ,PKG_INTRA_CUSTOMER_SEARCH.NAME
             from
                select c.ID,
                   c.NAME,
                   c.CODE     
                from V_CUSTOMER c  
                where 1=1 and  lower(c.NAME) like PKG_INTRA_CUSTOMER_SEARCH.NAME 
                --order by c.NAME, c.ID
                ) q
    10020     Ees Nimi     37810010237     e%
    10040     ewewrwe werwerwer          e%3.Query without "rownum" and with "Order by" returns 2 records:
    select q.*--, rownum
                ,PKG_INTRA_CUSTOMER_SEARCH.NAME
             from
                select c.ID,
                   c.NAME,
                   c.CODE     
                from V_CUSTOMER c  
                where 1=1 and  lower(c.NAME) like PKG_INTRA_CUSTOMER_SEARCH.NAME 
                order by c.NAME, c.ID
                ) q
    10020     Ees Nimi     37810010237     e%
    10040     ewewrwe werwerwer          e% 4. Query with "rownum" and with "Order by" returns 0 records:
    select q.*, rownum
                ,PKG_INTRA_CUSTOMER_SEARCH.NAME
             from
                select c.ID,
                   c.NAME,
                   c.CODE     
                from V_CUSTOMER c  
                where 1=1 and  lower(c.NAME) like PKG_INTRA_CUSTOMER_SEARCH.NAME 
                order by c.NAME, c.ID
                ) q

    Hi,
    please reproduce the question in your test database with script below.
    My general question is that wht Test5 below returns only 1 row, but Test5 returns 3 rows.
    The difference between those two tests is only that one has "order by" clause, the other doesn't have.
    I need the "order by" clause to stay, but seems like it is not allowed.
    CREATE OR REPLACE
    PACKAGE PACKAGE1 AS
    function NAME return varchar2;
    END PACKAGE1;
    CREATE OR REPLACE
    PACKAGE body PACKAGE1 AS
    function NAME return varchar2
    is
    begin
       return 'e%';
    end NAME;
    END PACKAGE1;
    select PACKAGE1.name from dual--e%
    create table Tbl AS
       (SELECT 'e2b' Col1, 'A' Col2, 'AA' Col3 FROM dual
       UNION
       SELECT 'e3b', 'B','BB' FROM dual
    --Test5:  
    select q.*, rownum pos, PACKAGE1.name f         
             from
                select c.col1,
                   c.col2,
                   c.col3     
                from Tbl c  
                where 1=1 and  lower(c.col1) like PACKAGE1.name                      
                order by c.col2, c.col1
                ) q                               
                union all
             select '111' , '111' , '111' , 0 pos, PACKAGE1.name f from dual   --return 1 row
    --Test6
    select q.*, rownum pos, PACKAGE1.name f         
             from
                select c.col1,
                   c.col2,
                   c.col3     
                from Tbl c  
                where 1=1 and  lower(c.col1) like PACKAGE1.name                      
                --order by c.col2, c.col1
                ) q                               
                union all
             select '111' , '111' , '111' , 0 pos, PACKAGE1.name f from dual   --return 3 rowsEdited by: CharlesRoos on Feb 17, 2010 5:30 AM

  • Can Anyone help I have a question about ordering items from iphoto

    HI,
    My question is .... Ive just moved from Australia to London & I am unable to order items Ive made in iphoto & have them sent to London.
    Previousely ,living in AustraliaI had no problem & Ive ordered items from iphoto that Ive created here in Lonond & had them sent back to Australia no problem.
    But I just cannot create here in London & then have them sent here,even if I change the credit card details ....
    Does anyone know how to tackle this ?
    Regards
    Lyndajane28

    Thank you LarryHN, you are a superstar... Ive been struggling with this for  a while now & you have solved my problem ..Thank you Thank you Thank you
    Regards
    Lyndajane28

  • Questions about ordering a phone from the site.

    I've never ordered a phone online before, or even from Best Buy for that matter. So I'm confused about a couple things. How does it work? Do they just send me the phone and I have to deactivate my old one?
    Also, I noticed the Droid Incredible 2 is listed at $0.00. I know you need to get a $30 data plan, which is okay since I'm overdue for a renewal anyways. But, I'm confused about the plan part. I'm part of a family plan, so if I selected the option to not change it (Which shows up as $0.00 still) Does it tack on the $30 data plan for my phone? Or do I need to select the $30 option?

    When you receive the phone, there will be simple instructions inside on how to activate it.
    As for the plan, I'm not sure why the website would indicate you can keep your same plan, but if you do not have a data plan you will be required to add the 2GB for $30 option. It is impossible for the phone to be activated on your account without it, so I would recommend just selecting the $30 option.
    Dan K. | Mobile Specialty Stores
    Any opinions expressed in this post are those of
    the author and do not represent Best Buy Co., Inc.

  • A few questions about ordering FIOS

    I was told by the workers from Verizon that I need to fax my passport in order to set up an installation date. Is there any other way to deal with this online or do I really have to go to a Verizon Wireless store to set up an installation date for FIOS?

    A passport is only warranted when trying to establish "citizenship".  Verizon has customers that are not US citizens.  Those who are US, establish identity or credit by social security numbers.  If you are Canadian or another visiting National, the passport would be requested.  Once your status is verified, you should have no problems.
    I use all their services and get great customer service if I run into problems.  If you run into issues, keep calling.

  • Question about order of effects in after effects

    I'm just a hobbiest. I want to put home convert home movies to 4K. Nobody I know has gone 4K. i'm using the effects color correcton, detail(I don't know what it's called  but  you use it for scale)  in distort and add grain .but I don't know which order they should be in or what all the Eastman and Kodak grains are or the best color correction for 4k are?

    If you movies were not transferred with a telecine setup and are standard def I wouldn't try upscaling them. You'll end up with a mess. If you used a real telecine service to encode the home movies to BluRay or HD digital files with h.264 or similar MPEG encoding I'd probably just leave them alone. Only if you had your original films encoded with a real telecine and have what would be considered a production codec copy would I try to use AE's improved upscale or something like Magic Bullet's Instant HD to uprez. I can't see any situation where I would take previously encoded 8mm movies and try and push them all the way to 4K for several reasons. The first is it's too far to go to expect any kind of quality increase. The best you can hope for would be a zero gain in resolution or clarity. The second, You've got to have some fairly fancy hardware to successfully playback 4K files to a 4K monitor. Third, The final viewed image of a HD source played back on a decent 4K monitor will never look any better than HD broadcast TV or BluRay playback through the monitors automatic resizing capabilities. There's only one way to make 8mm film look better than a true telecine conversion to HD and that's a true telecine conversion to 4K. There's just not enough information in the negative to make it worth the effort.
    And what Dave said. You don't need any more grain.

  • A question about ordering 32-bit Test drive DVDs on SAP Knowledge Shop

    Dear all,
    I ordered the following DVDs on the SAP Knowledge Shop website:
    - SAP NW2004s Testdrive Linux DB2 PPC                
    - SAP NW2004s Testdrive MaxDB
    And it seems that the first one works with 32-bit linux.
    Because, this is the first time that I order something on this site, there is something that I didn't fully understand. Apparently
    the DVDs are free. However there will be a shipping cost, which for me will be 15 Euros (I'm living in France). But when I completed the order form with my name, address, email, etc. there was no field for credit card number (for the shipping payment). I just received an order number and that's all. So finally how should I pay for the articles shipping?
    Thanks in advance,
    Dariyoosh

    try a power manager reset.
    read this apple doc:
    http://support.apple.com/kb/HT3964

  • Question about ordering??

    I went to my local verizon store today, and since they don't carry the iPhone, he sent me to the main store closest to me. When I got there, I spoke with a worker (who I was somewhat put out with right away because she was rude), and they will ONLY let you purchase the iPhone there if you're upgrading, not if you're buying at retail. Is that normal for verizon, or just that store? Also, if I order online, can I change options of shipping address? My mother is the account holder, and it wouldn't make sense for me to have it sent to her house (we live in seperate states). Anyone know? 

    I am sorry to learn of your experience with service in one of our stores.  I am not sure why any store would not allow you to pay full retail value for a phone.  It is possible that the rule had something to do with the stores inventory.  You can order online and have the phone shipped to your current address.  Since the account is not in your name, you will need to make sure that you have been added as an Account Manager.  You will also need to log into your family's "My Verizon" account as the primary account owner before you will be allowed to place an order.  
    Thank You 
    Ralph_Verizonsupport

  • About order and delivery quantities

    I have a number of questions about order and delivery quantities:
    1) How can I make a delivery even when there is no order?
    2) Where is customization of the controllig mechanism if the quantity of the items can be higher at the in the order than at the delivery or not?
    Thanks in advance...

    1) How can I make a delivery even when there is no order?
    Transaction Code: VL01NO
    Delivery Type: LO
    2) Where is customization of the controllig mechanism if the quantity of the items can be higher at the in the order than at the delivery or not?
    Ideally the Quantity of Order can be higher at Order, compared to Delivery. This is a case of partial delivery. Always ensure that Delivery Quantity = Pick Quantity i.e if Delivery Quantity is 50, but you want to deliver 30, in that case reduce the delivery quantity also to 30. If the quantity is different, PGI will not be allowed.
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Questions and answers about ordering Recovery DVDs

    There are some Frequently Asked Questions about the ordering process for Recovery DVDs:
    Questions about the ordering process and the prices
    Questions about delivery and shipment
    Questions about the technical background
    More Info: http://aps2.toshiba-tro.de/kb0/TSB0202TA0000R01.htm

    Someone asked me will Spotify work on EDGE mobile network in 160 kbps mode.
    I will explain some things out.
    EDGE network is very slow and actually EDGE is for light internet usage. However some operators, like Elisa Oyj in Finland, can handle 200 kbps in EDGE. If so, you can use 160 kbps Spotify without any problems. But keep in mind, some networks may be slow in EDGE and speed may be lower - in this case just use 96 kbps sound quality.
    Personally I would suggest 384 kbps or faster Mobile Internet. Because when you use 320 kbps in mobile, EDGE network isn't enough to handle Extreme quality. The Unlimited is good, but you should be fine with 1GB, just stream then 96 kbps or 160 kbps. I use 0.5M Unlimited 3G Internet and I can say it works like a charm with Extreme sound quality.
    If in your country no way for Unlimited,  you always can download Spotify playlists to Offline mode with your wifi. But I would say there is no need to fast 3G internet like max. 21M packages - Spotify will work fine with 384 kbps in any sound quality and in slow network too. However in this case you might want to use lower sound quality.
    Also remember if you use Unlimited or Free and there no plans to Premium, just ignore those. Free and Unlimited use only 160 kbps and no Mobile or 320 kbps support, so you will be fine with 256 kbps Internet. Personally I suggest to everyone 8M/1M Internet for Home use and to Mobile use something like 0.5M or 1M.

  • Question about the order to creating Account, Contact, Contact Role

    Hi, my friends,
    I have some questions about the order of creating Account, Contact, Contact Role, etc in Web Service 1.0. I could create them in the following case:
    1. Insert Contact object and get contactId (now new contact exists in CRMOD)
    2. Insert Account object with Contact Role child associated with contactId
    My questions are:
    1. Do we have the following order? Insert new Account with new Contact child and Contact Role child (Contact is new and does not exist in CRMOD).
    2. Looks like system need accountId, contactId, etc to make the objects relationship. Is there other field having the same function?
    Thanks
    Ray

    Hi Ray,
    In response to your questions:
    1. Do we have the following order? Insert new Account with new Contact child and Contact Role child (Contact is new and does not exist in CRMOD).No. Both the Account and Contact must already exist. The Role value is an attribute on the Account Contact relationship, this relationship must exist in order to assign a role value to it. This is consistent with the behaviour of the UI, when you press the New button on the Contact child applet, you are taken to the Contact New page where you can create a Contact record. Once you save, the relationship is created but you cannot assign a role value unless you click the Edit Roles link next to the new Contact.
    2. Looks like system need accountId, contactId, etc to make the objects relationship. Is there other field having the same function?Correct, the system needs to know which Account/Contact pair is being assigned a role value. To do this the Account and Contact values must be uniquely identified using the Id values for each.
    I hope this helps.
    Thanks,
    Sean
    Edited by: Sean Duffy on Jan 25, 2010 10:11 AM

  • It does not cover my question about in what order does the sync work?

    It does not cover my question about in what order does the sync work?
    Does the first signed on computer copy its information to the cloud?
    Does the second computer/pad/cell then download the information from the cloud overwriting the information on the second device even if some of the information is different?
    What happens to the information on the second device that is not in the cloud?
    If you delete a record (eg a bookmark) from the second device how does it then delete it on the first device?
    What are the keys to the different types of information?

    Hi I have answered you questions inline below:
    Does the first signed on computer copy its information to the cloud?
    Yes when you first set up the account or when you first add a device to the cloud, if it is not the first time, it will merge with the other data
    Does the second computer/pad/cell then download the information from the cloud overwriting the information on the second device even if some of the information is different?
    By default it merges. There is no option to change this.
    What happens to the information on the second device that is not in the cloud?
    It will sync at the next sync interval if that data is selected to sync.
    If you delete a record (eg a bookmark) from the second device how does it then delete it on the first device? What are the keys to the different types of information?
    It resolved the entry the next time the first and second device syncs. Can you elaborate on the second part of this question?

  • A question about the execution order of java code

    I have a question about the order of the execution of java code.
    class myclass
    String str1 = new String("str1");
    static String str2 = new String("str2");
    static
    String str3 = new String("str3");
    myclass( )
    String str4 = new String("str4");
    static myfuntion()
    String str5 = new String("str5");
    When I new a myclass object, what is the order of execution about str1,str2.str3 ,str4?
    When I run myclass::myfunction( ) instead of new a myclass object what is the execution order about str1, str2, str3, str4, str5?
    Thanks

    hello,
    I think there may be one thing can't use println to make sure.
    class myclass
    static {  System.out.println("str1");   };
    myclass() { System.out.println("str2"); }
    then str1 appear before str2
    class myclass
    static {  String str1 = new String("str1"); };
    myclass() { String str2 = new String("str2"); }
    then
    str1 initilized before str2,
    str1 get the value str1----->after<----- str2.
    Am I right or wrong?

  • Questions about converting files in order to import to iMovie '09?

    I was able to import the videos from my camera (.mts files) into iMovie '09, but now when I click Import from Camera, iSight opens up instead. Since I can't find out why it won't open up my camera files now, I have decided on just converting the files. I just have a question about converting though. The videos I recorded from my camera are in HD. They're very good quality. If I convert the videos from .mts into .mp4, would that reduce the quality of the video?

    When that happens to me I get stubborn and make iMovie see the camera by shutting down and reopening iMovie, because I don't want another level of transcoding. If that doesn't work and you have a card reader of even better, a sd slot on your iMac, just plug the card in. If it appears on the desktop iMovie should see it, and if it appears on your desktop then iMovie should read it.
    I have a Canon HFS 100 that works best if I take the card out and plug it into the computer.
    The times I converted to .mp4, I thought the quality did degrade, because it had to be converted to .mp4 and then imported as AIC. But I am not an expert on whether iMovie can deal with .mp4 directly.
    Canons require that one have the camcorder plugged into a power outlet, another reason to use a card reader.
    What kind of camcorder do you have?  With some camcorders, if one takes both photos and video, the video won't be read.
    When nothing works, occasionally deleting iMovie preferences works.
    Hugh

Maybe you are looking for

  • SSRS Using WHERE in a calculated field

    Hi All, Im having a real issue with something that seems like it should be easier than it is. In my tablix I want to add the expression =Sum(Fields!ID20.Value)-Sum(Fields!ID20.Value) BUT I need to determine if another criteria is met. EG - I want =Su

  • GNOME doesn't work correctly with startx only by GDM

    This is driving me nuts, I'm having a bunch of problems because I'm starting my GNOME session using startx instead of GDM and this bugs me a lot because I prefer startx most of the times... 1) One of the problems is that the sound does not work with

  • I bought music from itunes on my iphone and now i want to sync my phone with my new computer but will i loss the music on my iphone that i bought?

    I bought some music on my iphone and now i want to sync my music into my new macbook that i bought but i don't want to loss the music that i bought on itunes.

  • Calculation with Dates

    I have one date called Registration Date which will be input into the planning as string in dd--mm-yyyy format. Now I am capturing current date which should pickup from system(By @Today Function). I know that these dates are now in different formats.

  • PO Item

    Hello friends, I have to pull some specific data for PO, Item line. In the item we have a tab called Import tab and within this tab we have another tab called origin /destination/business. I need to pull the data for Country of destination. I have ch