Sorting by one column digital alpha - very urgent

Hi all

My table contains the following lines in col1.

a 1, 2, 3, 4, 5, 10, 11, 20, 21, 25, 25, 25B, 25 c, 26, 27, 28, 28 a, 28 b, c 28, 30, 31, 32.

By default when I choose, it is sorting in the following order:

1, 10, 11, 2, 20, 21, 25, 25 a, 25B, 25 c, 26, 27, 28, 28, 28 ter, 28 c, 3, 30, 31, 32, 4, 5.

But im waiting for the result in the following order.

a 1, 2, 3, 4, 5, 10, 11, 20, 21, 25, 25, 25B, 25 c, 26, 27, 28, 28 a, 28 b, c 28, 30, 31, 32.

Please suggest.

For the record (and for fun ;))):
A shorter version, without regular expressions:

MHO%xe> select col
  2  from   tab
  3  order by lpad(col, 2)||substr(col, 3);

COL
---
1
2
3
4
5
10
11
20
21
25
25a
25b
25c
26
27
28
28a
28b
28c
30
31
32

22 rijen zijn geselecteerd.

Verstreken: 00:00:00.11

Tags: Database

Similar Questions

  • Convert the lines into columns... very urgent

    Hello

    I have a small doubt... I create it follows and insert commands.

    CREATE THE TABLE SCOTT. ABC
    (
    ROOM_NAME VARCHAR2 (20 BYTE),
    MET_MONTH VARCHAR2 (2 BYTE),
    NUMBER OF TOTAL_SEATS
    );

    TOGETHER TO DEFINE
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Synergy Room 3', '06' 18");
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP2-18', ' 08,' 35 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Synergy room 2', '08' 50 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Synergy room 2', '05' 20 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP5-26 ', ' 05,' 10 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP2-18 ', ' 11', 35 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP3-49 ', ' 07,' 10 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Synergy Room1", '08', 45);
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Wallace Stevens', '09', 95 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ('Synergy Room1', '04', 73);
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Wallace Stevens ', 10', 205 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Wallace Stevens', '04', 100 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Synergy Room 3', '04' 25 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP3-49 ', ' 04', 8 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("Synergy Room 3', '07' 10 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP5-26', ' 07,' 13 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP2-18', ' 05,' 28 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP3-49 ', ' 09', 15 ');
    Insert into ABC
    (ROOM_NAME, MET_MONTH, TOTAL_SEATS)
    Values
    ("NP5-26 ', ' 10', 15 ');
    COMMIT;

    So I need to get the result like this:

    RoomName Jan Feb Mar Apr May June July Aug 7 Oct Nov Dec

    Synergy room 1 0 0 0 73 0 0 0 45 0 0 0 0
    Synergy room 2 0 0 0 0 20 0 0 50 0 0 0 0
    Synergy Room 3 0 0 0 25 0 18 10 0 0 0 0 0
    Wallace Stevens 0 0 0 100 0 0 0 0 95 205 0 0
    NP5-26 0 0 0 0 10 0 13 0 0 15 0 0
    NP2-18 0 0 0 0 28 0 0 35 0 0 35 0
    NP3-49 0 0 0 0 0 0 10 0 15 0 0 0



    Thank you
    Rajiv

    If you do not want null values then try like this

    NVL (sum (decode (met_month, ' 01', total_seats)), 0) such as jan,.

    S

  • is it possible to apply the sort on the columns added to a dynamic display object?

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    We have created a dynamic display object in the AM Impl, all objects in view columns are added dynamically.


    All lines are displayed correctly, but when sorting columns data disappear. (point of view are being refreshed, of course).


    is it possible to apply the sort on the columns added to a dynamic display object?

    This is how we show data in the JSF page:


    < af:table lines = ' #{bindings. " DynamicVO.rangeSize}' fetchSize = "#{bindings." DynamicVO.rangeSize}.

    emptyText = "#{bindings." DynamicVO.viewable? "{'No data to display.': 'Access Denied.'}".

    var = 'row' rowBandingInterval = '0' value = ' #{bindings. " DynamicVO.collectionModel}.

    selectedRowKeys = ' #{bindings. " DynamicVO.collectionModel.selectedRow}.

    selectionListener = "#{bindings." DynamicVO.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t1" >

    < af:forEach elements = "#{bindings." Var DynamicVOIterator.attributeDefs}' = 'def' varStatus = 'vs' >

    "< af:column headerText =" #{def.propertyMap.label} "sortable ="true"sortProperty =" #{def.name} ".

    ID = "clmn$ {vs.index}" >

    < af:outputText value = "#{row [def.name]}" id = "ot1" / > "

    < / af:column >

    < / af:forEach >

    < / af:table >




    Thanks guys, I created a custom class that contains a model that can be sorted in a pod of support and I have to the adf work table it and it is very good about sorting.

    JSF:

    Rows = "#{pageFlowScope.crudBean.dynamicTable.collectionModel.RowCount} '"

    contentDelivery = 'immediate' var = 'row' rendered = 'true '.

    Binding = "#{backingBeanScope.crudBackingBean.tasksTable} '"

    selectionListener = "#{backingBeanScope.crudBackingBean.customListener} '"

    "rowSelection ="single"id ="t1"partialTriggers =": pt_gr2 "columnStretching =" column: clmn0 ">

    inlineStyle = "width: 100px;"  ID = "clmn$ {vs.index}" > "

  • Sort by additional columns in vSphere Datastore Performance dashboard

    Hello

    I was wondering why I couldn't sort on one of the columns in the default dashboard for the vSphere "Datastore Performance". If I can't perform a sort on the values that I want to see that kind of defeats the purpose that he wanted to show?

    I can always manually scroll vertically to see the bottleneck manually, but it would be nice to have the ability to sort.

    Anyone know if it possible in some way, I have not discovered?

    SortingInAdditionalColumns.jpg

    Kind regards

    Erik Alm

    You are right that additional columns added to the widget resource attributes cannot be sorted (asc or desc). I share your frustration in that. For the moment, there is no way to do this in vC Ops 5.8. I look forward to changes in future versions that allow this feature.

  • Very Urgent: Setting dynamic where clause for Popup list VO

    Hello world


    It is a very urgent requirement please help as soon as possible.


    I have a custom page in iSupplier. I created two supplier site, number of PO fields.

    Site of beg - choice of Message and PO number - Message LOV of entry


    I have a named VO under xxisupplier.oracle.apps.pos.home.poplist.server for site begging and xxisupplier.oracle.apps.pos.home.lov.server for PO number.

    I have joined these two VO AM homepage.




    Now the question is

    1. I want to restrict these VO vendor_id-based so I'll put dynamically where clause for these two VO of in my CO


    VO SITE PROVIDER QUERY


    SELECT POVs.vendor_site_code site, pov.vendor_id
    OF po_vendors pov, povs po_vendor_sites_all
    WHERE pov.vendor_id = povs.vendor_id
    AND TRUNC (povs.inactive_date) IS NULL


    PO NUMBER LOV QUERY VO


    SELECT DISTINCT ai.invoice_num, ai.vendor_id, ai.invoice_date, poh.segment1
    AI ap_invoices_all,.
    help ap_invoice_distributions_all,
    po_headers_all poh,
    po_distributions_all pda,
    Al ap_lookup_codes
    WHERE aid.po_distribution_id = pda.po_distribution_id
    AND ai.invoice_id = aid.invoice_id
    AND poh.po_header_id = pda.po_header_id
    AND ai.invoice_type_lookup_code = al.lookup_code
    AND al.lookup_type = 'INVOICE TYPE'


    I am creating where cluase as below in CO



    If (vendor_id1! = null)
    {
    System.out.println ("vendor_id:" + vendor_id1);
    OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject ("PO_LOV_VO");
    if(vo!=null)
    {
    vo.clearCache ();
    VO. Reset();
    System.out.println ("inside IN. VO:" + vendor_id1);
    vo.setWhereClause (null);
    vo.setWhereClause ("vendor_id =: 1");
    vo.setWhereClauseParams (null);
    vo.setWhereClauseParam(0,vendor_id1);
    vo.setOrderByClause ("invoice_date DESC");
    String INVQRY = vo.getQuery ();
    System.out.println ("INVQRY:" + INVQRY);
    vo.executeQuery ();
    VO. First();
    System.out.println ("after the query appear" + vo.getRowCount ());
    }

    OAViewObjectImpl sitevo1 = (OAViewObjectImpl) am.findViewObject ("SUPPLIER_SITE_VO1");
    if(sitevo1!=null)
    {
    sitevo1.clearcache ();
    sitevo1. Reset();
    System.out.println ("Interior site:" + vendor_id1);
    sitevo1.setWhereClause (null);
    sitevo1.setWhereClause ("vendor_id =: 1");
    sitevo1.setWhereClauseParams (null);
    sitevo1.setWhereClauseParam(0,vendor_id1);
    String SITEQRY = sitevo1.getQuery ();
    System.out.println ("SITEQRY:" + SITEQRY);
    sitevo1. ExecuteQuery();
    sitevo1. First();
    System.out.println ("after the query appear" + sitevo1.getRowCount ());
    }



    Here he works for the purchase order number but the where cluase does not work for Supplier Site. Please help as soon as possible.


    2 and also if supplier site to return multiple values then this field should show as messagechoice. If it returns a single value, then it should be the style text message
    How can I achieve this.



    Thank you
    CSK

    Try

    vo.setWhereClause ("IN vendor_id (" + vendor_id_qry + ")" ");

    vendor_id_qry is the query that retrieves the list of provider IDS. You don't need to put the vendor column id as whereClauseParam unless you want to have IN the clause in your query of VO and pass the list as 1,2,3 values to the parameter.

    Thank you
    Shree

  • Very urgent - using the ISERROR function in HFR

    Hi all

    Its very urgent requirement for us.

    How can we use is the function of error in HFR.bcoz if the two values in the formula ex: has / b; a = 0, b = 0; then it shows some garbage value.i came to know that we can achieve this
    using the ISERROR function function.but i dnt know how to use it.

    Thank you
    Ravi

    Hello

    It can be done in this way using IfThen condition

    IfThen (IsErr ((ligne/colonne de référence), 0, (reference line/column)))

    where IfThen checks the condition

    Condition is ESTERR, it returns true when row/column reference forms, has a value of #error, so much affect you 0 (or any value you want) returns something else real calculated value of row/column of formulas.

    PS: Only the columns and rows formulas can cause #error.

    See you soon
    Vikas nasri

  • My screen iphone6 is cracked and in my country, they can only change the iphone with a new one and with a very high price. Is there anyway that I could replace just the screen?

    My screen iphone6 is cracked and in my country, they can only change the iphone with a new one and with a very high price. Is there anyway that I could replace just the screen?

    No, if you want to keep all rights to the service or support from Apple. Not to mention the fact that it then will be bork Touch ID and make the phone unusable if ever, you restore or update of iOS.

    Apple doesn't sell parts of the iPhone. There is no legitimate sources for replacement screens.

  • Cannot start Windows XP laptop computer... Very Urgent

    Hey guys...
    I have a DELL laptop, with pre installed Windows Vista, I want to remove Vista and load Windows XP
    I removed all my data, now when I put the XP CD and restart my computer.
    the installation program started
    When I press on enter to begin Setup, and error comes stating "SETUP CANNOT FIND HARD DISK DRIVE ON YOUR COMPUTER, make sure of COURSE, YOU HAVE the DRIVE HARD CONNECTED AND powered CORRECTLY."

    Please help me its very urgent

    thanx

    Not XP drivers SATA drive controller. You must be on a floppy disk and a USB floppy drive connected. Press F6 in the first part of the installation routine. Or integrate the drivers into your XP installation CD.

    Integrate the RAID or SATA controller drivers:
    http://www.MaximumPC.com/2005/01/how_to_slipstre.html
    http://unattended.MSFN.org/unattended.XP/view/Web/36/SESSID=8b0c51fd6eca712e465d2e6f79256fc8/

    IMPORTANT: If you have not already went him to the Dell Web site and checked to make sure they have XP drivers for this laptop, you should do this. If Dell can't stand Vista on this machine, you will not be able to install XP. MS - MVP - Elephant Boy computers - don't panic!

  • How to sort by "Date time digitized?

    Hello

    "I understand the differences between" Date time Orig ", Date time digitized" and "Date Time". I scanned images that show the original time and Date time digitized. But I can't find a way to sort by Date time digitized, only Date time orig. help, please!

    Thank you

    Michael Morrison

    In the EXIF standard, Date original time is when the image was captured originally, i.e. when the shutter is pressed.   Date time digitized is when an analog image (film) was scanned (digitalized); for digital cameras, usually Date is the same Date time digitized original time.  The Date field time is supposed to be the last time that the software (or firmware) changed the picture somehow. LR is not well maintain Date time.

    Date of the capture of LR usually shows the Date time original EXIF. (When Date time Original is missing, LR is trying to use other date fields, but it is buggy and confusing.)

    Unfortunately, LR provides no method for sorting by Date time digitized. However, both plugins provide only ability: List View and the data Explorer.

  • I don't see adobe now sketch in the Mac App store, previously I bought it on the App store, please help me in what I need this in a very urgent basis

    I don't see adobe now sketch in the Mac App store, previously I bought it on the App store, please help me in what I need this in a very urgent basis

    You should be able to see in your previous purchases.

    Adobe Photoshop sketch is currently on the App Store here: Adobe sketch.

    He just received an update in December.

  • I bought lightroom 6 for my mcbook pro in June, installed and used one or two times very well.  (I also had a version of lightroom track 5 and separately installed creative cloud before buying 6)  I haven't used the application a few months

    I bought lightroom 6 for my mcbook pro in June, installed and used one or two times very well.  (I also had a version of lightroom track 5 and separately installed creative cloud before buying 6)  I haven't used the application a few months and tried to open it this week without success, it launches the image of the foliage of the forest and freezes.  I uninstalled the version of lightroom 5, nothing helps.

    Hi Cyril,.

    If you are using the trial of both creative cloud, please uninstall it from the computer and try to revive the Lightroom.

    Thank you

  • Possible to obtain a support phone number? Very urgent

    Possible to obtain a support phone number? Very urgent

    Country?

    You can also contact the Adobe Support via live chat:

    Click always need Help (help), and then select the Chat option:

    https://helpx.Adobe.com/contact.html?step=CCSN_membership-account-payment_account-settings _stillNeedHelp

  • VERY URGENT: need access to the trial account - also pay

    Hello

    My for Adobe Acrobat Connect Pro trial account has expired.

    If I pay for the new session, I will be able to access my trial account? (I need to download the recording of flv).

    I asked Adobe marketing: person DIDN'T answered me.

    It is very urgent.

    Thank you

    --

    MC

    So I contacted an Italian dealer, because I have received no response from Adobe (really really bad how is Adobe support?).

    They said that the records could not recover.

    How bad!

    A reminder that my account was expiring and the chance to update my account would have sufficed...


    I look forward to other non Adobe with better support solutions!

    --

    MC

  • Interaction of value of navigation from one column to the dashboard prompt

    Hi all

    I am fairly new to OBIEE and employs 10g. Currently, I am trying to format our dashboard to track usage. So, I have a report that I want to be able to select a column ("dashboard") and use navigation value interaction or another method to pass its value in a quick dash in a different tab, so I can sort by this column ("Dashboard") for the six reports it. I can get the navigation to work tool to go to another report or dashboard, but it will not filter by the selected column, nor can I get it in the dash line. I was search the forumns and google like crazy, and can happen anywhere... This funcationality still exist?

    Any help would be much appreciated!

    M

    941044 wrote:
    Hi all

    I am fairly new to OBIEE and employs 10g. Currently, I am trying to format our dashboard to track usage. So, I have a report that I want to be able to select a column ("dashboard") and use navigation value interaction or another method to pass its value in a quick dash in a different tab, so I can sort by this column ("Dashboard") for the six reports it. I can get the navigation to work tool to go to another report or dashboard, but it will not filter by the selected column, nor can I get it in the dash line. I was search the forumns and google like crazy, and can happen anywhere... This funcationality still exist?

    Any help would be much appreciated!

    M

    Try this:

    (1) create a small report with a single column, the column that you use in your source in relation to the Interaction of the value.

    (2) on your six reports, put a filter on the same column, conversion to the "filter based on another request.

    (3) points to the report small and the column of the report.

    Your reports will be properly filtered.

  • access to update only one column in the table?

    Hi all

    My need is to grant access to update only one column c1 in table t1.
    I guess I should use view, could you please give me some examples? Maybe other ideas?

    Hello

    You can grant privileges on individual columns.

    GRANT   UPDATE (c1)
    ON      t1
    TO      grantee_name;
    

    Look in the manual of the SQL GRANT language. Annoyingly, in editions recent manual, GRANT is not indexed, but it is in alphabetical order with all other instructions:
    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_9013.htm#i2155015

Maybe you are looking for