Sort data with the name of the month

Hi all
I have a table column contains data type varchar2 and got every month (Jan - Dec) but he got another string "annual". I can't sort the data using the to_date function.

I am train simple statement like that-

Select item_id, description, name, order_month
of my_orders
order of to_date (order_month, 'Month')

but get error 'Invalid MONTH A'

Is it possible that I dispense the * "Annual" * in the list and then stopped a month?

Thanks in advance,

Pascal M

http://Tajuddin.whitepagesbd.com

You can try

order by to_date(nullif(order_month,'Annual'),'Month')

followed by

nulls last

or

nulls first

If you prefer to have annual on the top or bottom of the results of the query.

Alessandro Bye

Tags: Database

Similar Questions

  • Hi guys, I had a problem with the monthly payment, it is written that my credit card data are no longer available, but my credit card is still valid until the 04.16 I olny a few days to fix this, is there another way to make a payment?... and h

    Hi guys, I had a problem with the monthly payment, it is written that my credit card data are no longer available, but my credit card is still valid until the 04.16 I olny a few days to fix this, is there another way to make a payment?... and how I can do?

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

  • retrieve the last date of the month

    Hello

    I give myself a date. I want to find the last date of the month containing the given date.

    Is there any built-in why?

    Thanks in advance.

    DateTimeUtilities.getNumberOfDaysInMonth (cal.get (Calendar.MONTH), cal.get (Calendar.YEAR));

  • Foreign key constraint, not recognized during the synchronization of data with the model dictionary

    Hello

    Data Modeler is a foreign key constraints do not recognize when synchronizing data with the model dictionary, although the foreign key is there (in the database that a data dictionary is read). I can't find any criterion when a foreign key is not recognized by the Data Modeler. Are there limits to the length of the attribute, or the number of columns in a foreign key, or other limitations which may lead to this behavior not to recognize a fk by Data Modeler? I have columns more than 32 characters. I compared with the fk is recognized by DM, but I can't find anything that indicates why it is not recognized.

    I wonder if someone also has constraints of foreign keys that are not recognized in the comparison of data bases and model?

    Thank you

    Robert

    Hi Robert,.

    Thanks for the comments, I logged a bug.

    Philippe

  • Dynamic action for validation of date with the notification message plugin

    Hi all

    Someone help me please with dynamic action for validation of date with the message notification plugin. I have a form with two elements of the date picker control and message notification plugin.

    The requirement first user selects the exam is finished and then selects the date. So, if the date is greater than the date of the examination is over + 2 years then doesn't trigger the message notification plugin. I tried to create that dynamic action on the date picker date that triggers the scheduled issue notification message but I want to make conditional, I mean displays the message only if date of the selected is greater than the date of the exam is finished more than 2 years.

    In terms simple, notification is displayed only if provided is superior to (date of the exam is completed + 2 years).

    I use oracle apex 4.0 version and oracle 10g r2 database. I tried to reproduce the same requirement in my personal workspace. Here are the details. Please take a look.

    Workspace: raghu_workspace

    username: orton607

    password: orton607

    APP # 72193

    PG # 1

    Any help is appreciated.

    Thanks in advance.

    Orton.

    You can get the value of the date of entry:

    $(ele) .datePicker ('getDate');

    So what to add functions such as:

    function validateNotification (d1, d2) {}

    Date1 var = $(d1) .datepicker ('getDate');

    date2 var = $(d2) .datepicker ('getDate');

    if(date1 && date2) {}

    return ((date2.getTime()-date1.getTime())/(1000*24*60*60))>(365*2);

    } else {}

    Returns false;

    }

    }

    The logic based on setting (I have two years from years of 365 days preceding)

    Then in the D.A. specify a JavaScript expression as:

    validateNotification ('P2_REVIEW_COMPLETED', this.triggeringElement.id)

    Refer to page 2 for example.

  • What is always "stay up to date with the latest innovations in the field of photography from Adobe"?

    Hello

    I am considering buying stand-alone version 6 of Lightroom, but I wonder what does that "Always stay up to date with the latest innovations in photography from Adobe" is not available?

    Will be the updated standalone for free with the new camera support?

    Will be free updated standalone version with correction of defects?

    If there are new features (minor version of lightroom), will not be available for the stand-alone version before the next major release?

    Thanks for your help

    My understanding is that LR6 will continue to receive bug fixes and new camera support updates, but not feature/news which receives from the CRD. See question 2 below on this post: CC Lightroom / Camera Raw FAQ

  • What is with the monthly subscription? Can I buy is only the program as a one-time fee?

    What is with the monthly subscription? Can I buy is only the program as a one-time fee?

    Yes you can, but they have been very confused about this option (try to get people to opt for the subscription - please let them know what you think of this policy). The link is to http://www.adobe.com/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_software _sl_mostpopular.html. The default value is subscription, but if you click on the 'I want to buy' drop down list there is complete and updated versions to available level. It's so confusing if you don't know it's available, you would probably never have it find. I have not found it until some other MVPS made outside and many of us complained.

  • First date of the month

    Hi experts,

    Please let me know how to get registered for the 1st of the month by using the query, after passing a date in the query:

    My queries below give me 1 license of the year and the last date of the month... Kindly hep...
    SELECT TRUNC(TO_DATE('24-JUN-2011'),'YEAR') FROM DUAL
    
    SELECT LAST_DAY(ADD_MONTHS('24-JUN-2011',12 - 
    TO_NUMBER(TO_CHAR(SYSDATE,'mm')))) FROM DUAL
    Help appreciated,

    Thnx in advance
    TRUNC(TO_DATE('24-JUN-2011'),'MM')
    

    And he always will be always 1... ;)

  • I want to generete list date of the month

    I write this sentence to generete list date of the month*.

    Select TO_CHAR (TRUNC (SYSDATE, 'month'),
    "fmday jj/mm/rrrr.
    ) first_day_cur_month,.
    To_char (LAST_DAY (TRUNC (SYSDATE, 'month')) + 1-1 / 86400)
    ,
    last_day_cur_month "fmday jj/mm/rrrr")
    of the double

    but it works like the need of AI
    can be function or peocedure
    How to fix the sentence as dates list the month generete
    Please please

    Try this:

    SQL> ed
    Wrote file afiedt.buf
    
      1  SELECT TRUNC(SYSDATE,'MM') + lvl FROM
      2  (SELECT level - 1 lvl
      3  from dual
      4* connect by level <= (TRUNC(LAST_DAY(SYSDATE)) - TRUNC(SYSDATE,'MM')) + 1)
    SQL> /
    
    TRUNC(SYS
    ---------
    01-AUG-10
    02-AUG-10
    03-AUG-10
    04-AUG-10
    05-AUG-10
    06-AUG-10
    07-AUG-10
    08-AUG-10
    09-AUG-10
    10-AUG-10
    11-AUG-10
    
    TRUNC(SYS
    ---------
    12-AUG-10
    13-AUG-10
    14-AUG-10
    15-AUG-10
    16-AUG-10
    17-AUG-10
    18-AUG-10
    19-AUG-10
    20-AUG-10
    21-AUG-10
    22-AUG-10
    
    TRUNC(SYS
    ---------
    23-AUG-10
    24-AUG-10
    25-AUG-10
    26-AUG-10
    27-AUG-10
    28-AUG-10
    29-AUG-10
    30-AUG-10
    31-AUG-10
    
    31 rows selected.
    
    SQL> 
    
  • Sort data with display each trip

    HY,

    I need a VI witch sorts data with 2 aray.

    In this image, I first aray after sorting, the first column is position of cd rack and second column is the number of cd.

    To sort, I use position 6 in rack, this position is free.

    To this picture of the situation as:

    1-6

    3 1

    5 3

    4-5

    2-4

    6 1

    These are the movements that you do... I need a VI that makes it.

    EX:

    Good day.


  • How to compare a Date with the current year data and member of period on FIX

    Hi experts,

    I have a Sun project that each Member is a project (P01, P02,...)
    and account IMGs who stores the information of each project (name, Start date, finished...)
    Finished Date member is of data type Date

    So how can write an IF condition below in order to be able to compare the end Date of the project with the members of the current year and period on FIX
    DIFFICULTY (@Descendants (Projects), Descendants (year-round), Descendants ("year Total")...)
    IF (@CURRMBR (Period)-> @CURRMBR (Year) < Project > - FinishedDate)
    Do something...
    On the other
    Do something


    Please help me on this. Sorry for my bad grammar. Please ask if there is something not clear

    Thank you very much
    Van Huy.

    Published by: Van Huy on 29 January 2013 01:14

    Published by: Van Huy on 29 January 2013 02:24

    Published by: Van Huy on 29 January 2013 02:25

    Published by: Van Huy on 29 January 2013 18:04

    Here's what I did. Post for which may later cover

    VAR FM; / * End of month of the project.
    VAR EXERCISE; / * Year of the project terminated * /.
    VAR CM; / * Capture the current month on FIX declarations * /.
    VAR CY; / * Capture current year on FIX declarations * /.

    DIFFICULTY (@RELATIVE ('year', 0), @RELATIVE ('period', 0), @IDescendants ("core projects")...)

    FY = @ROUND ('TGHT'-> ' NA contract "-> 'FY06'-> ' NA period" / 10000, 0);
    FM = @MOD (@ROUND ('TGHT'-> ' NA contract "-> 'FY06'-> ' NA period" / 100, 0), 100);
    / * For FY13 back 13... */
    CY = @JgetDoubleFromString (@CONCATENATE ('20', @SUBSTRING (@NAME (@CURRMBRRANGE (year, Lev, 0, 0, 0)), 2)));
    / * Value CM set based on perceived period on the DIFFICULTY of statement * /.
    IF (@ISMBR ("Jan"))
    CM = 1;
    ELSE IF (@ISMBR ("February"))
    CM = 2;
    .....
    ELSE IF (@ISMBR ("Dec"))
    CM = 12;
    ENDIF

    IF (CY< fy="" or="" (="" cy="=" fy="" and="" cm=""><>
    Do something...
    ON THE OTHER
    Do something...
    ENDIF
    ENDFIX

    Published by: Van Huy on 19 February 2013 23:10

    Published by: Van Huy on February 20, 2013 19:46

  • connection problem of data with the support of mobistar (Belgium)

    WiFi works. Data connection isn't.

    The signal 'H' or 'E' is highlighted. I tried with the parameters of android and iphone Mobistar Belgium Web site and with all types of authentication. But it is impossible to connect.

    I will try with a sim card from another carrier and let you know.

    In the meantime, does anyone know if there are any specific APN settings for mobistar.be?

    Hi yellowtrolley,

    Thank you for reporting this issue. Please try the following to the APN settings I found on this site nd make sure your specific device supports the following frequencies:

    • GSM 900/1800 (2G GSM) net
    • W CDMA 2100 (3 G UMTS)

    The APN settings:

    • username: mobistar
    • password: mobistar
    • Name of the APN: web.pro.be

    You can also try this page if you need more specific parameters.

    Please let us know if this solves your problem, or if you have other questions about your Firefox OS device.

    Thank you!! =)

    -Ralph

  • Cannot insert data with the PDO function [from: insert and update of the server in the same shape behaviors]

    I feel as if I'm fighting my way around a paper bag trying to insert a record.  I have recently converted from MySQL for PDP, which cannot be applied.  I'm not trying to write routines to update data and started with insert.  I tried the example in your PHP Solutions edition two, pp. 361-363, but I can't get a written account.

    It is a database, which I supported since the host server using phpMyAdmin.  I'm very well display the data on the site, so I guess that my login script is ok.  However, nothing I've tried has got a registered insert.  I tried to get back to the basics, and it still does not work.  This is my current code.  Something is wrong with my statement = $sql and I can't identify the problem.  Help, please!

    If (isset($_POST['insert'])) {}

    try {}

    create the SQL

    $sql = "INSERT INTO Homepage_text (enriched, h_date, h_seq, h_col, p_heading, p_text, h_hide) VALUES ($_POST ['enriched'], $_POST ['h_date'], $_POST ['h_seq'], $_POST ['h_col'], $_POST ['p_heading'], $_POST ['p_text'], $_POST ['h_hide']);"

    $sainttim-> execute ($sql);

    echo "new record successfully created ';

    }

    catch (PDOException ($e) exception

    {

    echo $sql. "< br / > '. $e-> getMessage();

    }

    }

    There are several things wrong with your code:

    • You use elements of an associative array within a double quoted string. Which will cause a parse error.
    • The values you are trying to insert in the database are for most (if not all) of the text fields. If you use a literal SQL query, text fields must be wrapped in quotes.
    • You try to use the method execute() with a literal SQL query. In AOP, execute() only works with a prepared statement. To run a literal SQL query, you must use the exec() method.
    • Passing the values in the array $_POST directly in the database without any sort of validation and without escaping quotes or other characters just asking for trouble.

    Follow the examples in the book, and use a prepared statement. To address all these issues quickly and easily.

  • Loading data with the size of the attribute.

    I have a currency attribute dimension asociated to dimension of entities and I would download data using the dimension of the associated attribute. I have a file with a column with the name of the entity and also a column with the name of the attribute. Could someone tell me how to set the column attribute of the rule of load?

    Published by: user5170363 on March 22, 2012 12:55

    I guess that, dimensions of attribute are not County while you load data... Data file always have the standard dimension members...

    Thus, you can filter your features according to your attribute or load only on these entities...

    -----
    Vivek jerbi

Maybe you are looking for

  • Constantly check addon compatibility on new install v32

    Since I updated to the latest FF v32 it always checks the compatibility of the addons whenever I start it. It was really boring, so I went back to a previous version and everything worked well, all the addons worked and there was no question but this

  • How to record a bit 2D array in .bmp file?

    Hello I'm new to LabVIEW... I have a 2D binary table and I want to record to file .bmp. The .bmp file must be 1-bit bit depth in order to satisfy the devide requriement. I tried to use flatten pixmap , but there only 4-, 8 - and 24-bit pixmap options

  • How can I show that the phone is busy or loading?

    Hello I'm new to blackberry programming, but until now, it appeared too difficult to do everything like I wanted. but now I'm stuck. I am a communication with a Web service a lot so there quite some time the user must wait. so far I have not any indi

  • We can transport guests page drilled down?

    When drilling down in OBIEE 11 g, a new page opens. The new page is not carrying the guests it shows not what are the active filters. How see us guests on the page break down?Thank youSri

  • Facebook contacts do not sync more...