Blank DATE FIELD

How can I have blank date field in UNION ALL?
using 10g
SELECT SYSDATE FROM DUAL
UNION ALL
SELECT '' FROM DUALerror: ORA-01790: expression must have same datatype as corresponding expression

No need to cast as the datatype is assumed from the first part of the union...
SQL> set null 'NULL'
SQL> select sysdate from dual union select null from dual;
SYSDATE
07/09/2010 15:21:40
NULL
SQL>though casting it explicitly makes it clear what you intend.

Similar Messages

  • Foxpro Blank Date Field show as 30-DEC-1899 ?

    When I query and Insert Foxpro DBF Files Records into Oracle Database with Blank Date Field through Oracle Heterogeneous Connectivity, it shows as '30-DEC-1899', how can I avoid this and show as NULL ?
    Best Regards,
    Luqman

    Hi,
    I suspect that there is something wrong with your patterns (see Object > Field).
    I would set up the display and edit patterns to match how you want the data to display.
    Niall

  • Getting Records for Blank Date Field

    Hi All,
    I am trying to get all the records with blank Calday values, but not able to get the data in listcube or Query? how can I get this without using boolean function, range or manipulating data, in query i tried to restrict using # but no luck.
    Thanks,
    S.B.

    In the listcube, click on calday and when a selection comes on
    in the box of calday right click and option -> equal and leave
    blank the field. That will display everything blank
    Thanks
    Wons

  • Select query with blank date

    Hi All,
    I have issue with my select query, this query should execute when the date is empty in the table. Fields for the date is (trrecv and trpay)
    code:
    SELECT * FROM zcat3_mov
                       INTO CORRESPONDING FIELDS OF
                       TABLE lt_invmov
                       WHERE bukrs  EQ zcat3_mov-bukrs
                       AND trans EQ zcat3_mov-trans
                       AND status EQ 'CD'
                       AND clear  EQ ' '
                       AND trrecv EQ ' '
                       AND trpay  EQ ' '.
    Thanks,
    FED

    Hi,
    to check for blank date fields in database tables always use :
    date1 = '00000000'
    so your query will be -
    SELECT * FROM zcat3_mov INTO CORRESPONDING FIELDS OF TABLE lt_invmov
                            WHERE bukrs  EQ zcat3_mov-bukrs  AND
                                  trans  EQ zcat3_mov-trans  AND
                                  status EQ 'CD'             AND
                                  clear  EQ ' '              AND
                                  trrecv EQ '00000000'       AND
                                  trpay  EQ '00000000 '.
    regards,
    Shaurabh Pandey

  • Deleting date field value via import

    I need to clear the value in a date field for a few thousand records. I tried doing this via import by setting the value to a space " " but it didn't work.
    Any ideas on how this can be achieved through import or otherwise would be great.
    Thanks.

    Hi Nakul,
    Try any of the following, it will hopefully work in your case:
    1) Import using excel with blank date field (no data in date field). This will erase the already existing value in the date field [provided there is no workflow that restricts such deletion of date data.]
    2) Create a temp workflow on condition "before modified record saved" and update the date field value with blank (no values in fx), do the import, this workflow will delete the existing data.
    Cheers!
    Vix

  • Date fields are showing as  /  /   in DSO for blank dates or no dates

    We are loading flat file data to DSO and the date fields are showing as  /  /   in DSO for blank dates or no dates in the flat file source system.  We don't want to see this / /  and instead of this, we would want to this field in DSO to be in blank. Please help how to achieve this. Is there any way to do this transformation. If yes, then can you please provide  the sample coding.
    Advance Thanks,
    Christy

    I have added the code and data loading is successful. while DSO activation, it is failing. The error message is,
    Value '#' of characteristic 0DATE is not a number with 000008 spaces.
    It seems that we need to change the code. Can you provide me the corrected code please. Thanks.
    Christy

  • How do I set blank data to date field in pdf form ?

    Dear Sir,
    I made PDF form by Acrobat X on Windows PC and then,
    read the pdf form by acrobat reader on iPad.
    Date field  is included in the form.
    The Acrobat version is 10.1.6 .
    The acrobat reader version is 10.5.0 .
    First, I put the wrong date data to the date field.
    So, I tried to clear the date field.
    I want to put the blank data to the date, but I think
    there are no way to put the blank data on iPad
    I would like to know how to reset the date data.
    If that helps, I tried to the same thing on Android.
    I could put blank data to the date field by BS key.
    Sincerely,
    PV NEXT CO., LTD.
    Kiyonobu Matsuo
    PVネクスト株式会社

    Here is how to clear the Date field on the Ipad.
    NOTE: In order for this to work that has to be another TEXT field in the PDF to get the keyboard to pop-up.
    Click on Text field (this is to get the regular keyboard on screen)
    Click on Date field (date spinner control will show up)
    Click on SAME DATE field (spinner control will disapper)
    Click on "Reset Field" on top of keyboard (date field will now be empty)
    Click any where on PDF that is not another Date field (keyboard will disappear and date field will be empty)
    Bingo! your free and clear.

  • Office 2010 Don't print blank lines when data fields are empty

    How do you do this in office 2010?  Where do we go now?
    This used to be under the Tools menu in previous versions:
    On the Tools menu, click Mail Merge.
    In the Mail Merge Helper dialog box, click Merge.
    NOTE: You must select the main document and data source for the merge before doing step 2.
    In the Merge dialog box, under When Merging Records, click either:
    Don't print blank lines when data fields are empty.
    -or-
    Print blank lines when data fields are empty.
    Click Close in the Merge dialog box, and then click
    Close in the Mail Merge Helper.
    NOTE: If you made no changes in the Merge dialog box, the
    Close button is not available. Click Cancel instead.
    Back to the top

    Hi,
    In Word 2007 or Word 2010, you can add
    Mail Merge Helper to the Quick Access bar, and perform the steps then.
    To add the
    Mail Merge Helper command in the Quick Access Toolbar in Word 2007, follow these steps:
    a.                 
    In Word 2007, click the
    Microsoft Office Button, and then click Word Options >
    Customize.
    In Word 2010, click File > Options > Customize Ribbon.
    b.                 
    Click
    All Commands in the Choose commands from, and then click
    Mail Merger Helper in the Choose commands from list.
    c.                  
    Click
    Add, and then OK.
    Best Regards,
    Sally Tang

  • Date field to be set blank--Urgent --Please help

    Hi All,
       We are running on SRM 4.0(classic scenario).On the SC screen,there  is a  date field called "Required on".By default this field is getting populated with the system date.
      Now my reqt is that when the SC screen appears,i want this date field to be blank(not carry the system date)..The user will change the date whcih will flow to the next screen(Item level data-->std functionality)....
       I tried implementing this using the BADI BBP_DOC_CHANGE_BADI....but with this BADI,the date field can be changed to blank at the next screen..not at the first screen where this field gets populated by deafult with the system date where I want...
       In addition to this with this BADI,when i reset the field value to blank on the2nd(next ) screen,i get an error  message(stating that the date field value is not carried over)...
      Can anyone tel me how this date field is getting populated and how i can set this  value to blank when the SC screen appears???Please help..
    Thanks & regards,
    Disha.

    Hi Disha,
    second message is normal: this is the std check on delivery date (here it is initial because of your mods).
    first one semas to be related to the WF.
    It could be deactivated via usual message control in SPRO.
    1> I don't know this message
    2> message BBP_PD 584 or 587
    If you set this field as mandatory in the HTML template, maybe it would force the user to populate it before sending it to SRM SC item.
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • BDC date field should be blank

    I am creating a bdc - the date field should be blank.
    My logic is if input-field ne '0'.
      if w_ausbs ne '00000000'.
          PERFORM bdc_field    USING 'VIQMEL-AUSBS'  w_ausbs.
       else.
          PERFORM bdc_field    USING 'VIQMEL-AUSBS'  ' '.
       endif.
    Initially i just tried
      if w_ausbs ne '00000000'.
          PERFORM bdc_field    USING 'VIQMEL-AUSBS'  w_ausbs.
      endif.
    However, the field still gets populated with '00000000' which casues an error since it should be blank.  Able to create manually without entering a value in this field so it is not mandatory.
    Any ideas on how to get this field to be left blank.
    Thanks,
    Jill

    Hi Jill,
    1. U want the date field to be  blank.
    a) make sure it is not compulsory
    b) secondly, make sure, default value
       does not come up when entering
       data in the tcode
    2. If this is so , then
       how is ur w_ausbs defined ?
       a) it should be c(8)
    (so that 0000000 does not come,
      spaces come !)
      and specificlally passit
      using
    PERFORM bdc_field USING 'VIQMEL-AUSBS' w_ausbs. <---
    regards,
    amit m.

  • Working of SELECT MIN when data field is blank

    Hi expert,
    I'd like use the SELECT MIN instruction to take the older data (yyyy/mm/dd).
    If by accident I have a Data value = blank, the SELECT MIN does will take it?
    I should be sure that the SELECT MIN does not take an initial value.
    Thanks for your support.
    Claudia

    Hello Claudia,
    As per my understanding, If a date field has an initial value then by default it will have a value '00/00/0000'. In order to avoid the initial values you can put in where clause 'field is not initial'
    Hope this helps.
    Regards,
    Himanshu

  • ALE, use bd79 (converting data from sender to receiver to blank out fields)

    Hi, I am trying to blank four fields out in our FI IDOC for a certain business reason.  These fields must be blank (it is the FIDCC1 message type).   I am trying to use transaction bd79 (converting data from sender to receiver) maintain rules.  Is there a way to blank out these fields using a conversion rule?  I can change data fine but I cannot find a way to blank or null a field out.  Thanks in advance.

    You should have a look at the inbound function module (linked to your inbound process code). sometimes there are checks that if fields are initial that nothing will be changed.

  • Blank or null date fields are displaying 1/1/1901

    I have optional date fields that users may leave blank.  When they do, the result is that my report is printing 1/1/1901 (which I am guessing is a default setting somewhere in the options???)  Can anyone point me in the right direction so that if the field is null, the "text string" & doesn't print?
    Here's the formula, maybe it's a fundamental problem with the way I've done the formula:
    if totext({Command.SHIPDATE}) = ""
    then ""
    else "Needed by: " & {Command.SHIPDATE}
    Any help is greatly appreciated.

    Is SHIPDATE a date type or text field?  I an presuming a text field based on your example.  If the date is defaulting to 1/1/1901, I am guessing that is a function of your database server rather than Crystal Reports.  So I would alter your code to say:
    if totext({Command.SHIPDATE}) = "1/1/1901"
    then ""
    else "Needed by: " & {Command.SHIPDATE}
    Fuskie
    Who notes you could also put the text and data object directly in the report and use a suppression formula instead of a report object formula...

  • I have a numbers spreadsheet for tracking company data.  I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year.  How do I do that?

    I have a numbers spreadsheet for tracking company data.  I want to copy the format of the spreadsheet (rows, columns,and formulas) but have all of the data fields be blank for the new year.  How do I do that?

    click and hold on one cell, then drag to select the range, then release, then type the delete key.  Only inlude cells in the range you do not want to keey the contents of the cell.  You can remove one-off cells by holding the command key and clicking cells to add or remove as needed.
    You can download the Numbers users guide here:
    http://support.apple.com/manuals/#productivitysoftware

  • How to replace blank values in DATE field with 00000000

    Hi
    I have a DSO with Date field in which there are blank values. I want to replace the blank values in the DSO for date field with 00000000. Because of this blank values in the DSO the report is giving an ORA error.
    How do we replace the blank values in the DSO for historical data and also the new loads?
    Please advise.
    Thank you.
    Regards,
    Pavan.

    Hi Suman,
    I'm trying to run a query built on a DSO. The DSO has a field 'Start Date'. This Start Date InfoObject has a reference Char as 0DATE.
    This Start Field has blank values due to which I'm getting the ORA-01722 error. I came across many threads with same topic of discussion. As mentioned in one of the Threads I have written a program to update 'Start Date' with 00000000. The code wriiten is "UPDATE /BIC/AZ_MONINV00 SET /BIC/ZSTR_DTE = '00000000' where /BIC/ZSTR_DTE = ' '.
    Now when I see the data in the active data table of DSO the blank value is replaced with '00000000'.
    But If I right click on the DSO click on display data the 'Start Date' field is blank. And now the Query also gets executed without any error. But in the output of the query the 'Start Date' Field has "#" values.
    Can anyone suggest on how to remove these "#" values in the report?

Maybe you are looking for