Sort column - Case Insensitive but less should be the first


Hi all

Assume that we have EMployee table:

create table Emp (Empname varchar2 (20));

It has following records:

Insert into EMP (EMPNAME) values ('A');

Insert into EMP (EMPNAME) values ('a');

Insert into EMP (EMPNAME) values ('b');

Insert into EMP (EMPNAME) values ('c');

Insert into EMP (EMPNAME) values (');

Insert into EMP (EMPNAME) values ('e');

Insert into EMP (EMPNAME) values ('E');

Insert into EMP (EMPNAME) values ('F');

That is to say

EmpName
A
one
b
c
D
e
E
F

I need output like below: (sort by Ascending, case insensitive, which means I don't want all the money first and then lower the letters. The results should be in alphabetical order, it shouldn't matter if its capital or small. More important is that this tiny letter should come first and then the capital letter). Is this possible?.

EmpName
one
A
b
c
D
e
E
F

Select * from emp by Lower (empname) CSA;

Does not work, because 'A' comes before 'a '.

Kind regards

Billon

Select empname in order by upper (empname), ascii (empname) desc emp;

EMPNAME
one
A
b
c
D
e
E
F

See you soon,.

Manik.

Tags: Database

Similar Questions

  • I want to create an icon on my desktop to load 2 programs. I tried a .bat file, but it only loads the first program.

    I want to create an icon on my desktop to load 2 programs.  I tried a .bat file, but it only loads the first program.

    This helps you in some way?
    Microsoft® Security MVP, 2004-2009

  • Where the Case Insensitive component of research at the University Complutense of MADRID 11 g?

    Hello


    I have this 2008 document that says there is a file OracleCaseInsensitiveSearch.zip through which I can activate a component that helps looking for a content id regardless of the case.


    But I can't seem to find this thing. Can anyone help please?


    Thank you.

    For 10g, it's in the 'extras' folder in any component of UpdateBundle (90 MB).

    However, it is not that it is in the last patch of 11 g (263 MB).

  • * Flash animation loop but going back to the first image {want to hold on to the last image}

    I came across this article in loop animations = http://www.quip.net/blog/2006/flash/how-to-loop-three-times

    I am a novice with flash and just try to connect to some place ads and make it work for the first time.

    Everything worked for me in the article... the only thing I wanted to do, but you have not found that the answer to how do to stop the animation on the last frame after a loop is completed, instead of automatically return to the first image is?

    What is the most easy/most effective way for this?

    The shutdown script does not work... still goes back to the first image.

    For all my flash ads, imported FLV video... so I don't know if this is a feature for flv / video that auto-rewinds to first frame...

    Thank you very much, really appreciate any idea on it.

    The sooner you can take a minute to return best

    you add your video in the timeline.

    Add a stop() in the correct location works for me: create a new layer, insert a keyframe in this layer to the last video image and add a stop() in Control Panel actions.

  • I'm Member creative cloud, but startup applications in the first instance. Win 7 pro.

    The title says it all. There is a thread of Mac Os X users with the same problem. When signing with the Adobe Application Manager, I get only the possibility to enter a serial number.

    I had a test before and uninstalled everything installation and run the Adobe CleanScript.

    How to solve this problem?

    Check if the following help page makes a difference:

    http://helpx.Adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    If this isn't the case, you should try to contact Adobe by chat or phone customer service.

    Here are some links to help get in touch:

    http://www.Adobe.com/support/chat/ivrchat.html

    http://www.Adobe.com/support/download-install/supportinfo/

  • extracting columns of string array 2D according to the first item of each column

    Hello

    I have an array of strings 2D and I want to extract the columns according to the string value to items in each column to formulate a new 2D array. for example:

    in the joint excel table sheet a 2D. I need to extract all contain columns "CA/S -" string and "MS/s" to formulat + another array of strings 2D form columns that contain only 2 string values.

    Thank you very much and I would reaally any input apperciiate

    See you soon,.

    Mostafa

    Something like that?  I had to convert your Excel file into a CSV file.

  • Have downloaded the app creative cloud, but couldn't find the first Pro CC single-app

    After receiving email confirmation of payment for single-app Premiere Pro membership, follow the instructions in setting on the road and now have downloaded the creative application of cloud and when I come to download Premiere Pro, it is not displayed in the apps section.  What could be the problem so that it does not?

    Well, you're not going to like it, but it is not because your system does not meet the requirements. Check them.

    Mylenium

  • I can't tag batch photo, I followed the instructions but it only tags the first photo

    I'm trying batch of photos of the tag.    It will mark only the first photo

    Do it in mode (press 'g') grid.

  • First column display and all others with contains the first value

    Hello

    I have to query the table and display the result in such a manner:

    Batch value1
    value2
    value3
    value11 status_id2
    value13
    value18

    and so on... Could someone help me how to do this?

    Dear tutus!

    Is that what you want to do?

    break on a
    SELECT c.a, c.b, d.counter
    FROM   test c, (SELECT a, b, COUNT(b) OVER (PARTITION BY a ORDER BY a) AS counter
                    FROM   test) d
    WHERE  c.a = d.a
      AND  c.b = d.b
      AND  counter > 1
    

    Yours sincerely

    Florian W.

  • Case-insensitive sort, is this possible?

    Hello everyone,

    I'm doing a request to make of case insensitive sorts, but I failed miserably. I wonder if anyone has experienced the same problem...

    In a regular session of the Oracle, all I have to do is to set the NLS_SORT as BINARY_CI and sorting is case-insensitive; However, my Apex application solemnly ignores everything I try to do in this direction.

    I first tried to create a db setting process in the session (running code PL/SQL 'immediate 'alter session... » ») ; tried to put this process within a page, in many processes points and then tried to put this process in the application itself. in both cases, if I debug the page, I see that the command is executed successfully.

    And, in fact, the first time, the report is run, and the query appears in the debugging, the works of THIS sort; However, if I try to reload the page with a F5 or change something in the search bar (number of lines per page, filter, etc.), the kind regresses to the shape of the case. It's probably getting the records not in the query, but some cache weird, because any time the sorting doesn't work anymore, debugging does not show the application running.

    Then I tried to study where is - this cache and how killing, absolutely nothing helped. Tried to create another process to clear all session state, tried to disconnect and even once tried to kill all sessions of APEX database, close the browser and remove its cache... the cache with poorly sorted records has survived all this.

    Oh and even if sometimes the sort works for the records in the report, when I click on the header of column related to the field in question, and it shows all the values in this column, that the order of these values is never affected by the session NLS_SORT setting.

    Could someone has an idea about this?

    Thank you.

    What is an interactive report? If so, see [this post | http://forums.oracle.com/forums/thread.jspa?messageID=3920123].

  • The folders appear in the catalog, but unable to see the photos in folders after a certain folder

    System: Windows 7, 32 Bit Core2Duo w / 2 GB of Ram, LightRoom 5.5 connected to a Nikon D5200 for captive capture & review only.  Currently, we have records of 1727 and 5530 photos in the catalog.

    We use this system to take images of product for a Web site, and the images are stored on a mapped drive file server.   Today trying to examine some of the most recent photos would not select file/open the pictures (but you could see the first image in the file in the preview window).   I was running LR 5.3 so I upgraded to 5.5 to see if that would solve the problem but it didn't.   I am able to see the pictures if I click on the root folder and it works as expected.

    Folders/old photos that they function as they should him, but everything made after Monday did not work. (Monday is also be the last day was made a backup of the catalog).   When I return to the Monday backup all the files/images work.  When I try to import the missing files/images in the Monday backup, I have the same problem at the same point.  I have tried to create a new catalog from scratch and I have the same problem, however the "break point" (where I see is no longer records) changed a file earlier [in the series].

    I can browse the mapped network drive and see all the folders/photos without problem.  I also tried to synchronize folders and optimize the catalog, but none had any effect.

    I hit some kind of folder limit?  I read there was no 'hard' mail file/folder limit, but with the way it is, it's almost as if I found a hidden folder limit.

    It's rare to have that many records, so I think it's a limit to the size of the user interface on Windows.

  • ADF: How to convert column ADF output text to link to the item in the table?

    Hello world

    I use Jdev 11 G.

    I dragged VO as adf read only the table that is to have 10 columns.
    now my requirement is to convert the first column "empid" to link the item.
    How can I convert this column as a link?

    and one more thing by clicking on this link, we should sail to OAF page from empid as parameter.
    How can I achieve this?

    Any answer will be really useful.

    Thank you.

    In my opinion, using af: goLink is the right option when you call a page of the outsider.
    you do not download workspace sample & test it provided link?
    You can select yr af:commandLink in the Structure window & do a right click to select "create a binding of the action method.
    In the open dialog box you can choose the "connection method" & then name the bean with the same method name generated by the IDE.

  • Display the first value in a list after sorting

    Hello

    I'm trying to display a single value in a field in a list of values I want to sort in descending order.
    I tried the following code, but it gives me the first record in the list before sorting.
    How can I get the first record in the list after the sorting?

    <? for each: StatusHistory [position () = '1' and the role = "study Manager"]? > <? sort: created; ' descending '; type_donnees = "text"? > <? choose:? > <? When: created! ='' ? > <? xdofx:substr(created,12,2)? >: <? xdofx:substr(created,15,2)? >: <? xdofx:substr(created,18,2)? > <? end when? > <? otherwise:? > <? end otherwise? > <? end to choose? > <? end for each? >

    Thank you

    Try this:



    your online data

    See you soon

    Jorge
    p.s if this answers your question please grant points, and then close the message

  • HTML5, CSS3, JavaScript - which should you learn first?

    Super newbie here. For a while worked in Dreamweaver like start from the beginning. Which of the three is the basis, start by learning Java, HTML or CSS3. Know that each is specialized in various areas, but as a point of departure which should be the first to learn? Thank you...

    When you're comfortable with HTML, start immediately on CSS.  JavaScript can come later.

  • When I select print the printer responds but does not print on the first attempt.

    I have a printer HP psc 2170 and when I select print the printer responds but will print on the first attempt. It will start and then it is as if she is not detecting or responding and take up to 3 pages before it will print completely. I went back and set the parameters by default, unplugged the printer for a while and reconnected with no luck. Does anyone have ideas to help me solve it?

    Hello

    1. what version of Windows is installed on the computer?

    I suggest you to follow these steps and check if that helps:

    Method 1:
    Try to run the printer Troubleshooter and check that if it helps, here is the link:
    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Method 2:
    Try to run the below fixit and check if this may help:
    http://Windows.Microsoft.com/en-us/Windows7/why-cant-I-print

    It will be useful.

Maybe you are looking for