mask for the format issue date

I was wondering why this first query works, but the second does not work, if someone could help please :

[quote]

SELECT course_no, section_id, to_char (start_date_time, 'Day' The "Ddspth" of "fmMonth yyyy") IN the section

WHERE to_char (start_date_time 'DY') = 'Sun '; [/ quote]

[quote]

WHERE to_char (start_date_time, 'Day') = 'Sunday '; [/ quote]

any ideas? can't see what I'm missing?

Thanks in advance,

Nick

Date format day returns the name of the white day to the length of the longest day name (in the appropriate language):

SQL > select ' [' | to_char (sysdate + 1, 'day') |] ']' double.

'['|| TO_CHA
-----------
[Sunday]

SQL > select ' [' | to_char (sysdate + 1, 'FMDay') |] ']' double.

'['|| TO_CHA
-----------
[Sunday]

SQL >

Use FM modifier and,'nls_date_language = English "to make independent NLS:"

WHERE to_char (start_date_time 'FMDay', 'nls_date_language = English') = 'Sunday ';

SY.

Tags: Database

Similar Questions

  • I want to format fo my xp system, but I want my data as usual subsistence in the pc. So what to do for the format retain data

    I want to format fo my xp system, but I want my data as usual subsistence in the pc. then I have to format retain data mean my data not format. (do not delete)

    On Monday, February 6, 2012 15:55:56 + 0000, NIKUNJ84 wrote:

    I want to format fo my xp system, but I want my data as usual subsistence in the pc.

    These two statements are diametrically opposed. You can't do both.
    When you format a disk, you delete everything on it.

    then I have to format retain data mean my data not format. (do not delete)

    Copy (or save) your data on an external before formatting device
    the reader.

    Why do you want to format the drive? The vast majority of the time, it's
    a serious error.

    Ken Blake, Microsoft MVP (Windows desktop experience) since 2003
    Please reply to the newsgroup

  • SQL error: ORA-01840: value not long enough for the format of the date of entry

    It is a delete SQL in a driver of demand, which gives no error, but does remove all the lines either. I have converted the removal 'from' to ' Select * ' and may see the following error:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "CAL_0812")
    Error report:
    SQL error: ORA-01840: value not long enough for the format of the date of entry


    The interesting thing is that if I attach a condition of emplid, then the SQL above does not give an error and return lines:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "FM_CG_0812")
    and emplid = "1234"

    now, if the number of lines is identified (by giving more number of emplids), it begins to give the error when the number of rows returned is greater than about 30. It is completely independent of what employee is used, so there is no question of data dependence.

    Function optimizer cost is off and a subquery nest is off on the init.ora file

    subquery UNNEST= false

    optimizercost_based_transformation = off


    I don't know if it has something to do with this problem.

    Explanations would be welcome!

    Thank you
    Vikas

    I think it is question of data combined with a not very sensible date format mask (it could fail when the null data, because of your concatenation with '01' and work when not null data).
    Have you tried with a simple TRUNC?

    Your code:

    ...TO_DATE(TO_CHAR(ELG.PRD_END_DT, 'YYYY') || TO_CHAR(ELG.PRD_END_DT , 'MM') || '01' , 'YYYY-MM-DD') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    After change:

    ...TRUNC(ELG.PRD_END_DT , 'MM') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    Nicolas.

  • Dynamically change the Format of Date of Application

    Hi all

    I am looking for a possibility to change the format of date of Application in globalization attributes dynamically according to the user.

    Something likeAPEX_UTIL.SET_SESSION_TIME_ZONE but for the date format.

    Does anybody know how it works?

    In detail:

    I want dates in interactive reports display in a specific date format.

    If I put the following in the attributes of 'security' - call the virtual private database PL/SQL to define the security context:

    BEGIN

    If password = "MY_TEST_USER" then

    run immediately "alter session set nls_calendar =" English Hijrah "';"

    run immediately "alter session set nls_date_format =" DD-MM-YYYY "';"

    end if;

    END;

    Then, the dates are indicated correctly in reports interactive but not in the Action menu-> filter.

    If I put date_format = "DD-MM-YYYY" in the attributes of the globalization, it works very well in the interactive report filter.

    The problem is that I want to set this attribute only for some users.

    Thank's,

    Kirsten

    (APEX 4.0/APEX 4.2)

    Because you can use string syntax of substitution for the attributes of the globalization, for example, you could create an element of the AI_DATE_FORMAT application, reference & AI_DATE_FORMAT. and fill out the application element according to certain parameters in the code after the authentication of the authentication system (for example: get a parameter of an array of parameters user or somesuch).

  • How can I dynamically change the Format of Date of Application?

    Hello world...

    In my application (v 3.2) I let the user set the date format of app dynamically by a "preference" value, they can change on the road.
    I then take the format they take and affect their value (ie: ME-DD-YYYY) and pad "Hh: mi" for it and use it as the PICK_DATE_FORMAT_MASK that works very well for most of the selectors of dates.

    The problem I have is that some date picker, I use the application does not require the hh: mi, they need just the part of ME-DD-YYYY. I could use the NLS_DATE_FORMAT for this? I may be able to use the selectors of dates with the "format of date of application use? It doesn't seem to work for me.

    In other words, I need essentially 2 date formats for my selectors of application dates; 1 for just the dates and 1 for dates, including time. And these 2 formats are selected by the user by setting a preference of app dynamically at run time.

    Not sure if I feel here... any idea?

    Thank you!
    François

    You must use the element of the application in the installation of your application, so when you select in your control, you would use the date format of application level. You can change the level application through code or control element.

    Thank you

    Tony Miller
    Webster, TX

  • timestamp field is generating the error for the format ("MON-DD-YY hh: mi PM")

    "I'm trying to save the value 11 April 09 17:00 ' in a field with the timestamp data type. I got error 'found character where expected number'.
    So I change value 11 April 09 05:00 ' and registered without any error.

    I need to know "How to save" 11 April 09 17:00 "in the field with the timestamp data type'."

    Hello

    I think that it is a common misconception of what TO_DATE and TO_TIMESTAMP actually do. They do not convert your data. Oracle does not store the format of date or timestamp to Oracle date is a date. This display mode is determined by your NLS settings. So if you save ME-DD-YYYY or DD-MON-AA, Oracle stores exactly the same thing.

    So you ask how to "convert" your timestamp before saving, you don't need to. You just need to explain the format in which you provide the data to Oracle. You have the format "HH24 MON-DD-YY" in your date picker. I guess you NLS parameters are for the format ' DD-MON-YY hh: mi PM'. In this case, you need to do

    TO_TIMESTAMP(:P_ITEM,'DD-MON-YY HH24:MI') 
    

    NOT

    TO_TIMESTAMP(:P_ITEM, 'DD-MON-YY HH:MI PM' )
    

    If you do this and then query the database, it will be returned in the format ' DD-MON-YY hh: mi PM' if that's what you NLS settings dictate.

    Hope it makes sense.

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • How will I know if I am being charged for the use of data on the mini2 ipad

    How will I know if I am to be charged or billed for usage on my ipad mini data 2?

    Hello

    You can be charged for the use of data on an ipad, if it has a SIM card

    Cellular data.

    If your home wifi is unlimited you will not be charged more.

    Unless your WiFi has a hat of data ie download limit.

    See you soon

    Brian

  • What type of connections I do for the acquisition of data PCI 619 card pins? What I have to give it to the ground and the CCV on the pins of the connector myself? What should be the value of the SCR I need to give to the PIN?

    I have a PCI 6519 data acquisition card. I want to install it on the PC and use it outputs to control a robot. I have problems with the connections to the terminal block which is attached to the cable.

    What type of connections I do for the acquisition of data PCI 619 card pins? What I have to give it to the ground and the CCV on the pins of the connector myself? What should be the value of the SCR I need to give to the PIN?


  • Restarting a task for the acquisition of data inside a For loop

    Hello

    I need iterate through my acquisition of data. Currently, I'm doing this through the creation, implementation and tasks for the acquisition of data inside a loop For which is iterated according to the needs of compensation. Unfortunately, the creation of these DAQ tasks slow down my code.

    I would like to be able to create the tasks outside the loop, pass them in and revive the tasks at the beginning of each iteration. Is there an easy way to do this?

    Otherwise, is there a way to make the standard DAQmx digital startup trigger trigger several times (so that it starts each pulse data acquisition in a long pulse rather than just the first pulse train)?

    Thank you!

    -Evan

    I whent before and created this example for you (and many others.)

  • Use two assistants for the acquisition of data at the same time

    Hello

    I want to read multiple data channels of analog inputs on my DAQ hardware. However, when I try to create two separate data acquisition assistants for each entry, it gives an error saying "is reserved for the specified resource. The operation could not be performed as indicated "." Can't use two assistants for the acquisition of data at the same time?

    I have to add different channels in the same assistant DAQ? I tried, but I couldn't separate the data in different graphs.

    How does this work?

    Kind regards

    Allard

    You can't have multiple tasks of the same type (in this case inputs analog) on the same device.  Just so having 1 DAQ Assistant read all your channels and separate your channels for individual transformation.

  • Get errors for the user input data filter no KB 911895 HID

    OT: iI have windows xp S/P 3 installed also apple i pad I get errors for the user input data filter no KB 911895 HID
    What should I do to get rid of this popup that wizzard windows keeps giving me?

    Hi Graybeard,

    What is the exact error message you get?

    HID Non-User Input data filter is an optional update. I suggest you try the steps from the following link:

    The screen saver does not start after the installation of a wireless pointing device
    http://support.Microsoft.com/kb/913405

    What version of the operating system Windows am I running?
    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update
    http://support.Microsoft.com/kb/910339

  • Regular expression for the format: 000-000 - 000000 000000

    Hi guys,.

    I need to validate the columns in a regular expression for the format of 000 000 - 000000 000000.

    For example - if the column contains a value such as "500 110 - 500044 000100" then it should return 'true' otherwise 'false. '

    Your timely help is well appreciated.

    Thanks in advance.

    Hello

    inDiscover wrote:

    Hi guys,.

    I need to validate the columns in a regular expression for the format of 000 000 - 000000 000000.

    For example - if the column contains a value such as "500 110 - 500044 000100" then it should return 'true' otherwise 'false. '

    Your timely help is well appreciated.

    Thanks in advance.

    If you want a regular expression

    REGEXP_LIKE (str

    {{' ^ {\d{3} \d{3}-\d{6} \d{6}$'

    )

    According to your needs.

    You don't need regular expressions for this.  It will be more efficient to use

    TRANSLATE (str

    '012345678'

    '999999999'

    ) = 999 999 - 999999 999999'

  • Ive bought and downloaded adode acrobat Pro DC and its now asking me for the previous issue. I don't have it. He told me to uninstall the previous version of adobe so I did I don't have the password for the trail version more. How can I fix? I cannot ope

    Ive bought and downloaded adode acrobat Pro DC and its now asking me for the previous issue. I don't have it. He told me to uninstall the previous version of adobe so I did I don't have the password for the trail version more. How can I fix? I can't open any pdf on my computer now.

    Hi brets49833316,

    If you have purchased Adobe Acrobat Pro DC as an upgrade, then a serial number of the previous version which you have like Acrobat X or XI. If in the case where you have not bought one of these in the past, then you must buy Acrobat Pro DC as full version (US $449.00).

    In this scenario, you can return the version upgrade and purchase the full version. To return the Contact Customer Service

    Thank you

    Abhishek

  • I can't install my AD018640672 order number because you ask for the previous issue. Adobe came with my computer I don't have that. Can you help me!

    I can't install my AD018640672 order number because you ask for the previous issue. Adobe came with my computer I don't have that. Can you help me!

    Hi bobj39626549,

    We could certainly help you.

    If she asks for the previous version number, then you could acquire a version upgrade.

    You must purchase the full Acrobat version so that it can be installed and activated with the serial key.

    Hope that helps.

    Kind regards

    Ana Maria

  • I do a layout of paper every two weeks; This time, when I opened my model, set up for the next issue when I typed 'W' to display the grid I have something totally different than previously, a background grid which is more annoying.  Why in the world

    new to InDesign 6 months I do a newspaper page layout every two weeks.  This time, when I opened my model, set up for the next issue, when I typed "W" to display the grid, I have something I never saw elsewhere. ".  The background was filled with a new grid of tiles rather than the void behind the newspaper that I'm used to seeing.  I don't know what happened, but it seems that Adobe has tinkered once more with the program.  The last time this happened, I lost the icon "cover the columns" at the top; now, it's a case of two steps to put the head-lines across more than one column.  NOT useful.

    There is probably a command or a term, I don't know that this right but my main question is why, when I did this dozens of times before, doing something different will come this time.  (I know, without replica.)

    I'd also appreciate comments that someone out there could offer re why now when I tap on InDesign, is there a slight pause before that something happens to the screen.  What is my new Mac, or something to do with the program that I can fix it?

    Thanks, Sacie

    It looks like the grid of the document, which can be disabled in the view menu.

Maybe you are looking for