Where by Date is not working

This is the date stored in the column, It is a date column [ 6/8/2005 9:58:25 AM ]
I need to query the DB based on this date and it is not returning any thing
select *
from purchase
where created_date = to_date('6/8/2005,'mm/dd/yyyy')

You just forgot the quote:
to_date('6/8/2005,'mm/dd/yyyy') should be
to_date('6/8/2005','mm/dd/yyyy') .
Otherwise, the sql should work:
SQL> create table purchase(created_date DATE);
Table created.
SQL> insert into purchase values('08-JUN-2005');
1 row created.
SQL> select *
2 from purchase
3 where created_date = to_date('6/8/2005','mm/dd/yyyy');
CREATED_DA
08.06.2005
1 row selected.
If it doesnt, please post your sql with error messages as pasted from sql*plus.
Regards,
Gerd

Similar Messages

  • Umm I just got this iPhone 5 and cellular data is not working, can't access apps, heck can't even download any and Safari...ummm yeah not happening.  I'm with Sprint if that makes any difference.

    Umm I just got this iPhone 5 and cellular data is not working, can't access apps, heck can't even download any and Safari...ummm yeah not happening.  I'm with Sprint if that makes any difference.

    Are you in an area where there is no coverage?
    You can try a reset, hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
    If that doesn't help, then yOu'll need to contact Sprint again.

  • DOCUMENT SETTING that ALLOW FUTURE POSTING DATE does not work in PL34

    Hi Expert,
    I am now using SAP B1 2005B (7.40.252) sp:00 pl:34 and realised that the ALLOW Future Posting Date was not working. 
    I still can remember while I was using pl:11 at B1 2005A, there is no such problem and wish to know when can the bug fix up? in which sp/pl?
    Wish to hear goods news ASAP .
    Thank you.
    Joan.

    Basically can you please clarrify your requirement as to what you want to change ..what I understand you would need to change the code for ABAP - RFEBBE00
    Value Date code in the above abap
            IF PAR_VALD = 'X'.
              MOVE C2-VALDT TO HLP_VALDT.  "  VALUE DATE
             write hlp_valdt to umsatz-budat dd/mm/yy.
            ELSE.
              MOVE C8-BALDT TO HLP_BALDT.
              MOVE HLP_BALDT TO HLP_VALDT.
            write hlp_valdt to umsatz-budat dd/mm/yy.
            ENDIF.
               MOVE HLP_VALDT(2) TO UMSATZ-BUDAT.
               MOVE HLP_VALDT2(2) TO UMSATZ-BUDAT3.
               MOVE HLP_VALDT4(2) TO UMSATZ-BUDAT6.
    Regards
    Anurag
    Message was edited by: Anurag Bankley

  • Where used list is not working for IMG nodes/Document   in solar01

    hi experts
    In template project , we are using same IMG objects in different business processes and subsequent configuration document is attached to each IMG node in configuration tab.  ( like same IMG node  -  define order types used in different business process configuration tab )
    when i use " where used list " from the configuration tab , its not showing the IMG objects  used in different business processes in the same project. whereas its showing the IMG nodes used in the different project.
    I need to find out the same IMG objects/ document  used in the same project using the " Where used list " button.
    Please provide your answers
    Note : we have linked one configuration document to same IMG nodes used in different business. " where used list " also not working for documents as well
    Thanks
    Sol man

    Hello there,
    I just tried some tests and couldn't face any problem with locating other usages for the objects in configuration tab.
    You mentioned a configuration document, so have in mind that the document usage will only be considered if it is a link to the same document and not just a copy.
    e.g:
    Here I created a document in this node:
    Then I added it as a link here:
    and as a copy here:
    When I go back to the original node and use the where-used, it'll only show the original and the link:
    This happens because after copying a document, it is considered as a new one instead of another usage of the original one.
    best regards,
    Fabricius

  • The Restriction option to NOT ALLOW CHANGES to Mobile or Cellular data does not work why is this ?

    The Restriction option to NOT ALLOW CHANGES to Mobile or Cellular data does not work why is this ?

    Hi there,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Turn your iOS device off and on (restart) and reset
    http://support.apple.com/kb/ht1430
    Additionally, you may want to try completely disabling and re-enabling restrictions.
    -Griff W.

  • HT1976 my cellular data is not working , how do i fix it

    my cellular data is not working
    when i turn it on it doesnt show
    but ym wirless network works
    i need help.
    thanks

    My cellular data stopped working when i update my iphone 5c to ios7.1 any help please

  • Date comparision not working in BI-Publisher in one scenario.

    Hi,
    Iam using sqlquery as a datamodel for BI-Publisher report. I have a requirement that the input parameters startdate and endate are Date types. When the user enters startdate and enddate and clicks on view, the report should show data which falls in between those dates.
    Here is the sample query i used.
    select * from
    table1
    where begintime >= :p_StartDate and begintime <=:p_EndDate
    Here begintime is a timestamp and p_StartDate and p_EndDate are just dates. So when comparing begintime with p_StartDate/p_EndDate, i guess its taking default time from that date and because of that the comparision is failing in 1 case. i.e, In the above query, though the comparision operator is >= or <= , ultimately > or < is getting effective. So to acheive the actual result, I need to give one day more for start and end dates.
    However I found a way to acheive this without adding extra day to both the dates. Here it is :
    select * from table1 where
    ( begintime >= to_timestamp(to_char(:p_StartDate) || '00 00 00', 'DD Mon YYYY HH24 MI SS')) and
    ( begintime <= to_timestamp(to_char(:p_EndDate) || '23 59 59', 'DD Mon YYYY HH24 MI SS'))
    But the above is working in sqleditor like jdeveloper database navigator. But not working in BI-Publisher.
    BI-Publisher is throwing error saying
    "ORA-01830: date format picture ends before converting entire input string"
    Please help as to how to go about this problem or any alternative solution.
    Thanks & Regards,
    -Vijay-

    Hi,
    I think it will be fine to trunc the begin time since :p_StartDate and p_EndDate are just dates without time stamp
    i.e:
    select * from
    table1
    where trunc(begintime) >= :p_StartDate and trunc(begintime) <=:p_EndDate;
    any problem with this.Please share the thought.
    Best Regards,
    mahi

  • Date Condition Not Working ,Value not cming in to item.

    Hi Friends,
    i have create a form for palce order and i have create a MASTER table for fixed item Rate between two date with price code like A,B,C,D .
    In Form i have for Item
    :P1_ORDER_DATE
    :P1_ITEM_CODE
    :P1_PRICE_CATEGORY Select List With Submit
    :P1_ITEM_RATE
    In Item rate i have put in Source ,
    Source Type --SQL Quary
    Source Vale
    select RATE_1 from SAM_ITEM_MAS where ITEM_CODE =:P1_ITEM_CODE and  PRICE_CATEGORY=:P1_PRICE_CATEGORY and :P1_ORDER_DATE
    between FROM_DATE and TO_DATEMy Table
    CREATE TABLE  "SAM_ITEM_MAS"
       (     "ID" NUMBER NOT NULL ENABLE,
         "ITEM_CODE" NUMBER,
         "PRICE_CATEGORY" VARCHAR2(5),
         "FROM_DATE" DATE,
         "TO_DATE" DATE,
         "RATE_1" NUMBER,
         CONSTRAINT "SAM_ITEM_MAS_PK" PRIMARY KEY ("ID") ENABLE
    /that code's not working but if i run this code in to SQL Command Then it's work fine.but not in to ITEM :P1_ITEM_RATE .
    i want when i select P1_PRICE_CATEGORY Like A,B,C,D then Respective Rate from Table SAM_ITEM_MAS should come in to item :P1_ITEM_RATE .
    Oredr date condition is not working.
    Thanks
    Edited by: 805629 on Dec 28, 2010 11:32 PM

    Hi,
    Have you tried casting the item values as dates using TO_DATE():
    select RATE_1
    from SAM_ITEM_MAS
    where ITEM_CODE =:P1_ITEM_CODE
    and  PRICE_CATEGORY=:P1_PRICE_CATEGORY
    and TO_DATE(:P1_ORDER_DATE,'DD/MM/YYYY') between "FROM_DATE" AND "TO_DATE"(change the date format string to match the format of the P1_ORDER_DATE page item)
    You should probably change the name of the field to something other than TO_DATE as this is an Oracle function name - try DATE_FROM and DATE_TO or START_DATE and END_DATE or something like that. Otherwise you may have to use the double-quotes as I have shown above
    Andy

  • Table date filter not working properly

    Hi OTN,
    I have noticed that table date filter not always working properly.
    When I copy actual value from column outputText to column filter and hit Enter - I see an empty table.
    http://imageshack.us/photo/my-images/818/filter.png/
    I suspect the problem to lie among date formats.
    But I tried to delete convertDateTime from outputText or add it under filter inputDate. Nothing helped.
    <af:column sortProperty="Hisdate" sortable="true"
                                     headerText="#{bindings.InformationView1.hints.Hisdate.label}"
                                     id="c8" visible="false" filterable="true"
                                     width="83">
                            <af:outputText value="#{row.Hisdate}" id="ot5">
                              <af:convertDateTime pattern="#{bindings.InformationView1.hints.Hisdate.format}"/> // or without both lines
                            </af:outputText>
                            <f:facet name="filter">
                              <af:inputDate id="id15"
                                            value="#{vs.filterCriteria.Hisdate}"
                                            columns="8">
                                <af:convertDateTime pattern="#{bindings.InformationView1.hints.Hisdate.format}"/> // or without both lines
                              </af:inputDate>
                            </f:facet>
                          </af:column>Nothing special about the attribute. A database table field of type DATE. In database this (see picture) row has exactly "06.06.2006".
    Could you please point me out where to start seeking?
    Thanks.
    JDev 11.1.1.4

    Well, OK. I think I'd better have 2 attributes: truncated date for filter and full date with time for edit.
    What is an attribute type for datetime?
    select trunc(t.HISDATE) AS HISDATE -- date attribute type
        ,to_char(t.HISDATE, 'dd.mm.yyyy hh24:mi') AS HISDATETIME -- timestamp/date attribute type?Something like this?

  • Update using date picker not working?

    Hello,
    This might be simple for a lot of people here but I can't get it going...
    The problem is that, I have a tabular form with 1 text field and 1 date field. I am using a PL/SQL anonymous block transaction to insert/update a view based on the field values. Insert is fine but update on the date field is not working - but no errors. The date field is a date picker('DD-MON-YYYY') column. Kindly help check the problem. Thank you.
    Below are some codes that might be helpful
    -- update statement in the block
    update  del_ignore_conchold_v
    set     conc_prog_name = apex_application.g_f03(v_row)
           ,remove_entry_date = apex_application.g_f04(v_row)
    where   row_id = apex_application.g_f02(v_row);
    -- update trigger on the view
    CREATE OR REPLACE TRIGGER APPS_TEST.del_ignore_conchold_v_upd_tr
       instead of update
       ON APPS_TEST.DEL_IGNORE_CONCHOLD_V referencing new as new old as old
       for each row
    begin
       update apps.del_ignore_conchold_tbl@PROD
          set conc_prog_name = :new.conc_prog_name,
              remove_entry_date = :new.remove_entry_date
        where conc_prog_name = :old.conc_prog_name
        and   remove_entry_date = :old.remove_entry_date;
    end;Thanks,
    Rownald

    Hello,
    The output for g_f03(v_row) and g_f04(v_row) appear to be fine. g_f03 only has the actual text and g_f04 has the date(from date picker field) with format like 22-OCT-2009. Below is an excerpt of the code & debug log - might be of help.
    Thanks as always.
            if apex_application.g_f02(v_row) is not null then
                wwv_flow.debug('MY PROCESS: g_f02 ' || apex_application.g_f02(v_row));
                wwv_flow.debug('MY PROCESS: g_f03 ' || apex_application.g_f03(v_row));
                wwv_flow.debug('MY PROCESS: g_f04 ' || apex_application.g_f04(v_row));
                -- update stmt
                update  del_ignore_conchold_v
                set     conc_prog_name = apex_application.g_f03(v_row)
                       ,remove_entry_date = apex_application.g_f04(v_row)
                where   row_id = apex_application.g_f02(v_row);
                wwv_flow.debug('MY PROCESS: g_f03 ' || apex_application.g_f03(v_row));
                wwv_flow.debug('MY PROCESS: g_f04 ' || apex_application.g_f04(v_row));
    -- debug log --
    0.09: ...Do not run process "AddRows", process point=AFTER_SUBMIT, condition type=, when button pressed=ADD
    0.09: ...Process "Save_Transaction": PLSQL (AFTER_SUBMIT) declare v_row binary_integer; begin for i in 1..apex_application.g_f01.count loop v_row := apex_application.g_f01(i); if apex_application.g_f02(v_row) is not null then wwv_flow.debug('MY PROCESS: g_f02 ' || apex_appli
    0.09: MY PROCESS: g_f02 AAE2DlAHKAAAA0qAAB
    0.10: MY PROCESS: g_f03 Delete data from temporary table
    0.10: MY PROCESS: g_f04 22-OCT-2009
    0.11: MY PROCESS: g_f03 Delete data from temporary table
    0.11: MY PROCESS: g_f04 22-OCT-2009
    0.15: ...Process "Reset Pagination": RESET_PAGINATION (AFTER_SUBMIT) reset_pagination
    0.15: Branch point: AFTER_PROCESSINGRownald

  • Tx Data Sources NOT WORKING

    Is anyone else out there going crazy trying to get Tx Data Sources to work? out of the six connection pools I have, I can only get two of them setup with Tx Data Sources. I am able to make connections to the pools using DriverManager. However, when trying use them via a Data Source, only two of them work. This is the error:
    javax.naming.NameNotFoundException: Unable to resolve ACLINET1. Resolved: '' Unresolved:'ACLINET1' ; remaining name ''
    where ACLINET1 is the name of the pool and Data Source.
    ANy help would be great!

    Hi Mark,
    Could you check if a target is assigned to the datasources?
    Looks like it's not. Could you also show us the questionable
    code and the part of the config.xml defining pools and DataSources?
    Regards,
    Slava Imeshev
    "Mark GIlligan" <[email protected]> wrote in message
    news:3d1ce4c5$[email protected]..
    Is anyone else out there going crazy trying to get Tx Data Sources towork? out of the six connection pools I have, I can only get two of them
    setup with Tx Data Sources. I am able to make connections to the pools
    using DriverManager. However, when trying use them via a Data Source, only
    two of them work. This is the error:
    >
    javax.naming.NameNotFoundException: Unable to resolve ACLINET1. Resolved:'' Unresolved:'ACLINET1' ; remaining name ''
    >
    >
    where ACLINET1 is the name of the pool and Data Source.
    ANy help would be great!

  • My phone is so slow won't download any apps and data is not working correctly

    I have the moto e with straight talk

    Hi
    This is not a Firefox thing, but there are some general housekeeping activities you can do to make your telephone run much easier.
    First of all, uninstall any apps and widgets you do not need. It is amazing how they can clutter up your phone! In the app drawer, long press on an app or widget and drag it to the uninstall option at the top of the screen.
    So you have a sizeable SD card in your phone? If so, in Settings app , scroll down to Storage and tap "Move media". As it says on the menu, this will move your media files to your memory card, thus freeing up space on your phone.
    Before you leave Storage, scroll up a little and tap on "Cached Data" and selected to clear the cached data.
    In Settings>Apps, scroll across to "On SD Card" and tick a few boxes to move some of your apps to your memory card. (Note: With some apps, this may mean that any accompanying widgets will not work, this is a bug with Android).
    Once finished, turn off your phone and turn it back on again and you should find your phone has quite a bit more space and is running a bit quicker.

  • Help for date field not working after upgrade

    hi experts,
    In our BSP application for a page we had an inputfield (date).
    Onvaluehelp for input field we were calling the saphelpdate function.
    however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
    we have upgraded to SPS 16 recently.
    please help me.
    regards,
    Arvind.

    Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
    DATA: BEGIN OF T_PCONT OCCURS 0,
          PCONT LIKE ZPSPERMISOS-PSOBKEY,
    END OF T_PCONT.
    DATA: BEGIN OF T_FIELDS OCCURS 0.
            INCLUDE STRUCTURE help_value.
    DATA END OF T_FIELDS.
    DATA: BEGIN OF T_VALUES OCCURS 0,
          VALUE(60) TYPE c.
    DATA: END OF T_VALUES.
    DATA: N TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK  b20 WITH FRAME TITLE text-b02.
      SELECT-OPTIONS:
        P_CONT FOR  ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_INT  FOR  ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_FEC  FOR  ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,    
        P_RAZ  FOR  ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK b20.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
      PERFORM P_HELP_P_CONT USING P_CONT-LOW.
    *&      Form  P_HELP_P_CONT
    FORM P_HELP_P_CONT  USING P_P_CONT.
      DESCRIBE TABLE T_PCONT LINES N.
      IF N EQ 0.
        T_FIELDS-FIELDNAME  = 'PSOBKEY'.
        T_FIELDS-TABNAME    = 'ZPSPERMISOS'.
        T_FIELDS-SELECTFLAG = 'X'.
        APPEND T_FIELDS.
        CLEAR T_FIELDS.
        SELECT PSOBKEY FROM ZPSPERMISOS
        INTO  TABLE T_PCONT.
        SORT T_PCONT BY PCONT.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          CUCOL        = 10
          CUROW        = 1
          TABNAME      = 'T_PCONT'
          FIELDNAME    = 'PCONT'
        IMPORTING
          SELECT_VALUE = P_P_CONT
        TABLES
          FIELDS       = T_FIELDS
          VALUETAB     = T_VALUES.
    ENDFORM.                    " P_HELP_P_CONT
    Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
    Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM

  • Global Data Plan not working in the Netherlands

    I called customer service a week before my trip and arranged for the $30 "Global Data" plan to begin April 1. I have been unable to get a data connection here in the Netherlands and e-mails to customer service have gone unanswered. I cannot see anything on my account to indicate whether this has ever been activated.
    By poking around the settings and setting the data networks to GSM I've been able to see Vodophone, T-Mobile, and KPN listed, but if I try to connect to any of them I get an error that indicates I cannot connect to them.
    Can anyone provide some advice on how to get this working? I was really relying on this to help with getting info on places to visit and it's proving a pretty difficult trip when having to rely on free wifi spots to make up for this.

        roninacolyte,
    Greetings from the states! To be honest, the Thunderbolt will not work in Hong Kong. You can check out our trip planner for future reference at http://vz.to/n9PFe9
    EvanO_VZW
    Follow us on Twitter @VZWSupport

  • Sessions.xml data source not working using toplink

    I'm having some difficulty getting a data source to work. I have an ADF selectOneChoice component and I want the list of values available to be bound to a database given by the JNDI name and controlled at the j2ee container level.
    I have created a sessions.xml file
    <toplink-configuration>
    <session>
    <name>PIMSSession</name>
    <project-xml>META-INF/PIMS_ADF_TLMap.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/PIMSDS</datasource>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <connection-pool>
    <is-read-connection-pool>true</is-read-connection-pool>
    <name>default</name>
    <login>
    <datasource>jdbc/PIMSDS</datasource>
    <platform-class>Oracle10g</platform-class>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    </connection-pool>
    </session>
    </toplink-configuration>
    The sessions.xml points to the toplink mapping file PIMS_ADF_TLMap.xml, which contains information about the database view that is used to populate the drop down list. It also contains a deployment connection:
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>pimsdev</toplink:user-name>
    <toplink:password>BB742416276274A494F7008B3AE0FB10</toplink:password>
    <toplink:driver-class>oracle.jdbc.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@yvworad01:1521:PIMSD</toplink:connection-url>
    </toplink:login>
    The problem I'm having is that my ADF application always binds the selectOneChoice to the connection-url in the toplink mapping file instead of the datasource in the sessions.xml.
    If I remove the deployment connection from the mwp file, recompile and deploy I get a JBO-29000 error about not having a suitable driver.
    Does anyone know how to get the selectOneChoice to bind to a datasource instead of the toplink mapping connection-url?

    Hi Aaakar,
    From the error message, please try to change the setting of Credential type for the data source on report manager as follows:
    Go to the Data Sources properties page.
    For the Connect Using option, select Credentials stored securely in the report server.
    In User Name and Password, type credentials that can be used to access the database. If you are using SQL Server as the data source, the user name must be valid for both logging on to the server and for accessing the database that contains the data for
    the report.
    If the user name and password are credentials for a Windows account, select Use as Windows Credentials.
    If you want the report server to pass the credentials of the user accessing the report to the server hosting the external data source, click Windows Integrated Security. In this case, the user is not prompted to type a user name or password.
    For more details about Configure Data Source Properties, please see:
    http://technet.microsoft.com/en-us/library/ms155882.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Using Netgear Access Point with Business Hub

    Dear all, I am trying to set up a wireless network and am using a BT Business Hub 3.0 as the router + wireless transmitter in one area and a Netgear WG602 v.4 Access Point in another area of my home. The Business Hub and the Netgear are connected via

  • 3d format - convert to fbx

    Hi all, has anyone had any sucess creating an after effects plugion which converts an after effects file (with 3d camera and other 3d elements) into filmbox (fbx) format? I love animating with the puppet tool in AE, but need it to go into Unity (and

  • Handle of the OIC1 data

    I developed a new Application that has in the OIC1 a fieldmelting group with the fields PRODUCT_ID (input field) and DESCRIPTION (read only), in the field PRODUCT_ID there is an advanced search help. I did a mapping using Input Help/Field Assignment

  • Compression and Index

    Hi BW Experts, I deleted Indexes before loading the data. Then I compressed the request without Creating the Indexes. It is taking so much time to compress. Is this the right procedure? Will it take too long to compress after deleting the index? Than

  • Safari icons gone generic

    The app (Safari 2.0.3) retains it's icon in the Applications Folder, but becomes generic in the Dock. All bookmark files have gone generic, most no longer link directly to Safari when clicked. To open a bookmark I must drag the icon to the Safari ico