Need to get the date's.

Hi,
I need to get the dates in interval of 7.
My Scenario:
When my user gives the date as 04/01/2013. My output should be like
04/01/2013
04/02/2013
04/03/2013
04/04/2103
add of 4 dates. How can i acheive this in sql query? Could any one pls help me?
Regards,
Prasad k T,

wilhelm wundt wrote:
Hi,
I need to get the dates in interval of 7.Your expected output is not talking about th einterval of 7 days..
>
My Scenario:
When my user gives the date as 04/01/2013. My output should be like
04/01/2013
04/02/2013
04/03/2013
04/04/2103Is this date dd/mm or mm/dd
If you need 4 consecutive dates, use
select input_date+level-1
from dual
connect by level <= 4;>
add of 4 dates. How can i acheive this in sql query? Could any one pls help me?
Regards,
Prasad k T,

Similar Messages

  • HT6154 I deleted my Imexchange from my phone I need to get the data back with the app

    I deleted a IMexchane App from my phone by mistake. I need to get the app and the data back.
    Please Help

    Talk to the app developer. From what I can see, that app is designed to sync with Outlook. The data should still be in Outlook

  • Need to get the date minus 300 seconds

    Hi,
    I need help writing the following select statement.
    I am trying to get the time from a date field minus 300 seconds. Please help me format this select statement.
    Thanks!

    select my_date_column - (300 * (1/24/60/60))
    ...

  • BAPI commit without using Wait? need to get the data for created order

    I am using BAPI to create or change sales order and by using 'BAPI_TRANSACTION_COMMIT' updating the database.
    Immediately after that there is some requirement to fetch VBAP with the created order number, but there is no data found.
    If i use call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                   wait          =  'X'.
    then i am able to fetch data from VBAP, but its impacting the performance. Is there any alternative way to get data without fetching or without using wait.
    Can i use ABAP memory or SAP memory to get the details?
    Please help...........

    Hi Tapas379,
    Yes technically you can:
    set data before commit
    DATA memory_id(20) TYPE c.
      CONCATENATE 'VBAP_01_' sy-uname INTO memory_id.
      DELETE FROM DATABASE indx(as) ID memory_id.
      EXPORT vbap_tab = vbap_tab "<-input
        TO DATABASE indx(as)
        CLIENT sy-mandt
        ID memory_id.
    Get data from anywhere after setting it.
      data memory_id(20) type c.
      concatenate 'VBAP_01_' sy-uname into memory_id.
      import vbap_tab = vbap_tab " ->output
        from database indx(as)
        client sy-mandt
        id memory_id.
      delete from database indx(as) id memory_id.
    Thanks,
    Duy

  • I need to get the data out of OnAcquiredDataCwcounter1 and print it out on text-control-fieldl

    My problem is to read the data Measurement and Overflow from a OnAcquiredDataCwcounter. I want to read them and write it in a text field. Hope you can help me, I'm making my diplom and I really need your help.
    Thank you

    The "Measurement" argument of the OnAcquiredDataCWCounter event handler is a pointer to a VARIANT. To access the contents of a VARIANT and place it in a Microsoft Edit Box you can do something similar to the following inside of the event handler:
    void CDAQSTCBufferedDlg:nAcquiredDataCwcounter1(VARIANT FAR* Measurement, BOOL Overflow)
    CString mstr;
    mstr.Format ("%lf", Measurement->dblVal);
    m_edit.SetWindowText (mstr);
    I have attached a simple project that illustrates basically the same concept. It has a CWSlide control and an MS Edit Box on the dialog. When the CWSlide's pointer changes position, I update the Edit Box with the new value of the pointer's position. (Make sure to rebuild the entire project to execute it).
    To unders
    tand more about the CString MFC class and the VARIANT structure go to http://msdn.microsoft.com
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask
    Attachments:
    test.zip ‏70 KB

  • Need help getting the data from my old address book

    Can someone tell me what file I need to copy and where to restore all my addresses from my old address book. I elected not to migrate everything to avoid problems, but that is one important and long list.
    Any help will be greatly appreciated
    Mireille

    Look in the folder ~/Library/Application Support/AddressBook/ for the files containing your data, where ~ is the item in the Finder's sidebar with the house icon.
    (25514)

  • This may be a duplicate but, I have a new ipad mini that I need to activate but I need to get my data from my 1pad 1 which has never been backed up.  How do I get the data from the ipad 1 to the new mini?  I have itunes acct and also Icloud acct.  Thanks

    I have a new ipad mini that I need to activate but I need to get the data from my old ipad 1 and install on the new mini.  I have a itunes acct and also icloud acct.  How do I back up the ipad 1 data and then activate the mini.  I assume I will need to transfer the sim from the ipad 1 to the mini.
    Thanks for any info
    wino454

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
     Cheers, Tom

  • Not able to get the data from synchronous Webservice To BPEL process

    Hi All,
    My requirement is : Third party has some webservice.They are pushing data to that Webservice(Wsdl).
    Third part WSDL example : http://ipaddress:port/name/Service.svc?wsdl ( This is just example format of their WSDL)
    After that I need to get that data into my BPEL process and update my system.
    When I built My Snchronous BPEL process I imported third party WSDL(http://ipaddress:port/name/Service.svc?wsdl) through 'import WSDL' in dialog.After that I automatically got the (request and response schema elements) parameters from that WSDL.I gave input and output of the BPEL process from those elements.
    I pasted that third party URL iin SOAPUI and I got their operations and schemas.Based on that I had choosen the elements for 'input' and 'output' of the BPEL processes.I am also getting the schema structures in 'Assign' or 'Transform' activity.
    I built the whole process.
    I have the Process.
    Now Client is pushing data to their WSDL(http://ipaddress:port/name/Service.svc?wsdl) as it is their data pushing interface.But that data is not coming to my BPEL process and instance is not being created in EM console.
    As I have imported their WSDL into my BPEL process,I need to get the data.But I am not getting the data.
    Is there any problem in MY BPEL process?
    (or)
    DO I need to use 'Webservice' Adapter in 'Exposed Services' Swimlane in Composite Editor to have the third party URL, so that they Can push the data to that WSDL in turn that data comes into my BPEL process?
    Can anybody help me this case?
    once again my requirement is :
    Client pushes the data through their WSDL url -----> I need to get that data into MY BPEL process --> I have my own WSDl to take that details into my system.

    I will explain the requirement in small paragraph:
    There are two applications.One is our application(X) and another one is third party application(Y).
    I need to update in my application(X) based on data coming from application(Y).
    I am using SOA as a middle tier to have communication between Y and X.
    (Ex: if they send some info like event type 'event1' from Y ,I need to update that 'event1' data in my X application)
    The work at third party application is :
    According their info,They will push data from their end to their WSDL( http://ipaddress:port/name/Service.svc?wsdl ).
    They are telling they can only send the data to their WSDL( http://ipaddress:port/name/Service.svc?wsdl ).
    They will not consume our BPEL process(I think they might be wrong at this point of time).They have one WSDL to send or push the data from their end.
    The work at from our side(SOA & X application)
    From that point ,our BPEL process has to receive that data and update that data into my application(X).
    I hope You understand my requirement.
    Can you guide me through how to achieve this task as they are telling they have to use their WSDL to push the data?
    (or)
    Do I need to take 'Webservice' adapter into Exposed Services Swimlane in Jdeveloper to have their webservice(third party WSDL),If it is So Can you tell me the details how to take 'input' and 'output' for BPEL process?
    (or)
    Can YOu suggest me to talk to them to consume my BPEL process directly?
    Thanks
    Edited by: 899283 on Aug 17, 2012 4:55 AM

  • How to get the date of Friday for the given week

    HI,
    I have a requirement to get the date of Friday for the given week.
    Eg: I have an input of 200722 (Yearweek), From this I need to get the Date of the friday for this week 22 of Year 2007.
    Plz let me know how to get this..
    Thanks in advance..
    Sridhar.

    Hi,
    Thanks for your reply...
    I have implemented your logic but not getting exact output as required.
    Suppose, If i give the input as 200720, I am getting an output as 18 (friday of week 20 of year 2007), but i need to get an output of 18.05.2007
    Plz let me know how to do thdi.
    Thanks in advance..

  • Get the data from a dbase file - .dbf.

    Hello all - good morning working on Sunday :(. I am needing to get the data from old application which run the dbase program. Need to automatique the data getting. If you have any idea, please tell to me. Thanks to you, Nóra.

    >
    Hello all - good morning working on Sunday :(. I'm not even working - how sad is that :)
    I am needing to get the data from old application
    which run the dbase program. Need to automatique the data getting. If you have any idea, please
    tell to me. Take a look here http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:711825134415.
    It worked for me, with a bit of difficulty - mostly due to my own stupidity... if you have
    any problems, post back.
    HTH,
    Paul...
    Thanks to you, Nóra.

  • EXPECTED OUTPUT:   here i need to get the count of 932 + 134 records = 1064

    Hi Team,
    could you pls suggest y iam getting wrong count.
    select * from i_invoice_info_t_log_v invlog,invoice_header_t invhead
    WHERE substr(invlog.tot_cust_no,1,7)=substr(invhead.acct_no,3,7)--------comparing tot_cust_no and acct_no for the other countries
    and invhead.comp_code NOT in (2300) ----here when iam running this query i am getting the count of 932 records.
    select * from i_invoice_info_t_log_v invlog,invoice_header_t invhead
    where substr(invlog.tot_cust_no,3,7)=to_char(substr(invhead.acct_no,3,7))--------------comparing tot_cust_no and acct_no FOR THE COUNTRY 2300
    and invhead.comp_code in (2300) ----Here when i am running this query i am getting the count of 134 records.
    EXPECTED OUTPUT:   here i need to get the count of 932 + 134 records = 1064 records.
    I am  using this query like below:
    select * from  i_invoice_info_t_log_v invlog,invoice_header_t invhead
    where
    (substr(invlog.tot_cust_no,1,7)=substr(invhead.acct_no,3,7)
               and invhead.comp_code NOT in (2300)
              OR
              (substr(invlog.tot_cust_no,3,7)=to_char(substr(invhead.acct_no,3,7))
               and invhead.comp_code in (2300)
    )---------------------------------------------------here when i am running this query i am getting the count of  18381 records which is incorrect.
    Expected output: i need to get the data for the comp_code which are not in 2300 and which are in 2300... both

    select  *
      from  i_invoice_info_t_log_v invlog,
            invoice_header_t invhead
      WHERE    (
                    substr(invlog.tot_cust_no,1,7) = substr(invhead.acct_no,3,7) --comparing tot_cust_no and acct_no for the other countries
                and
                    invhead.comp_code NOT in (2300) --here when iam running this query i am getting the count of 932 records.
            or (
                    substr(invlog.tot_cust_no,3,7) = to_char(substr(invhead.acct_no,3,7)) --comparing tot_cust_no and acct_no FOR THE COUNTRY 2300
                and
                    invhead.comp_code in (2300) --Here when i am running this query i am getting the count of 134 records.
    /SY.

  • Get the date and time from iframe.

    Hi,
    Am using jdeveloper 11.1.1.6.0., I have used the following iframe source which gets the date and time.
    <af:form>
    <iframe src="http://free.timeanddate.com/clock/i3xb4nm0/n1722/tt0/tw0/ts1" frameborder="0" width="244" height="19">
          </iframe>
    </af:form>
    I need to get the date and time separately to perform some validation. How can i  get it.
    regards,
    Prasad K T,
    9840021070

    Prasad,
    I don't understand your use case. The url you use is a json web service which returns it's result as either xml or json payload. Why do you pretty print this as a web page and try to get to the result this way?
    Why don't you get the result directly using the json result or (AFAIK) the java script api which the service also provides.  Check the documentation of the service.
    From your description I understand that the user enters a time. You need to know if the time is before or after 2:30pm and have to set a 'shift' to A or B.
    Where do I need a timeservice in this validation?
    From what I see your approach won't work. As I still don't understand the use case I don't know how to help.
    Timo

  • Native query. How to get the data...

    Hello everyone!
    I'm struggling to figure out how to extract data from particular columns from DB. Here is what I have...
    A table PersData with columns A, B, C, D and so forth. Also there is an entity represents this table called PersonalData.
    I need to get the data from A and C columns, but I still haven't found a solution how to do this. I know how to exctract an entire row from the PersData table by writing the following code...
    Query query = entityManager.createNativeQuery("SELECT * FROM 'PersData` ", PersonalData.class);
    List<PersonalData> qresult = query.getResultList();
    for(PersonalData item: qresult){
          System.out.println(item.getA());
          ........ But it's inefficient to get values of other columns at the same time.
    I guess that my query should be written smth like this...
    Query query = entityManager.createNativeQuery("SELECT A, C FROM `PersData` ");
    List<PersonalData> qresult = query.getResultList();
    for(PersonalData item: qresult){
          System.out.println(item.getA());
          .....But I got an error java.lang.ClassCastException when I do this for (PersonalData item: qresult). Actually, I understand why it's like this.
    Does anybody know how to get values just from two columns and then use them?

    Oops, my bad. it was about 2 paragraphs further
    down...
    "autoGeneratedKeys - a constant indicating whether
    auto-generated keys should be made available for
    retrieval using the method getGeneratedKeys;"Down in what?
    The following is the docs for the method you posted taken from here - http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Statement.html#executeUpdate(java.lang.String, int).
    executeUpdate
    public int executeUpdate(String sql,
    int autoGeneratedKeys)
    throws SQLException
    Executes the given SQL statement and signals the driver with the given flag about whether the auto-generated keys produced by this Statement object should be made available for retrieval.
    Parameters:
    sql - must be an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing
    autoGeneratedKeys - a flag indicating whether auto-generated keys should be made available for retrieval; one of the following constants: Statement.RETURN_GENERATED_KEYS Statement.NO_GENERATED_KEYS
    Returns:
    either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing
    Throws:
    SQLException - if a database access error occurs, the given SQL statement returns a ResultSet object, or the given constant is not one of those allowed
    Since:
    1.4
    I don't see the text you posted in there.
    At the very least there is at least a suggestion that an exception will be or could be thrown because the only way some databases can return an autogenerated key is via a result set.

  • Getting the data for the infotype 0006 and Subtype 4 in HR ABAP

    Hi All,
       I need to get the data from the info type 0006 and the subtype 4 , only i need to fetch the data in communications . Could you any one tell me best way to fetch that data.
    Thanks,
    SAP SAR.

    Write a select single on PA0006 for the given pernr begin and end dates and for subtype 4 ...
    select single * from PA0006
               where pernr = p_pernr
               and SUBTY = '0004'
               and ENDDA >= s_date-low
               and BEGDA <= s_date-high.

  • How to get the data for last 3rd business day and also include saturday and sunday if its a wednesday?

    Hi All,
    I have a simple query which is below:-
    Declare @reportdate date
    set @reportdate= (DATEADD(dd,-5,getdate()))
    select * from dbo.Table
    where date IN (@reportdate)
    I need this query to pull the data for the last 3rd business day .So lets say today is monday then i need the data for last week wednesday which is 3 business days back from monday, if today is a tuesday it would be for last thursday ( as 3 business days for
    tuesday would be thursday). But if today is wednesday then i need to be last 3rd business day which is last friday and i also need to get the data for saturday and sunday.
    Can someone please help me how cani change my filter to do this?
    Please let me know if i am still unclear.
    Thanks

    Hi SqlDev12,
    Based on my understanding on your requirement, you can reference the below sample.
    CREATE TABLE BusinessTable
    Bdate DATE,
    Wd VARCHAR(10)
    ;WITH Cte(DT,WD) AS
    SELECT CAST('20150401' AS DATE),DATENAME(WEEKDAY,CAST('20150401' AS DATE))
    UNION ALL
    SELECT DATEADD(DAY,1,DT),DATENAME(WEEKDAY,DATEADD(DAY,1,DT)) FROM Cte
    WHERE DT<GETDATE()
    INSERT INTO BusinessTable SELECT * FROM Cte
    SELECT * FROM BusinessTable
    SET DATEFIRST 7 -- Set Sunday as the first day of a week
    DECLARE @givenDay DATE ='20150415' --Wednesday
    SELECT * FROM BusinessTable
    WHERE Bdate BETWEEN
    --For Monday and Sunday, select last wednesday
    (CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
    --For Tuesday and Wednesday, last week's Thursday and Friday
    WHEN DATEPART(WEEKDAY,@givenDay) IN(3,4) THEN DATEADD(DAY,-5,@givenDay)
    --For Thursday and Friday, current week's Monday and Tuesday
    WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
    --For Saturday, current week's Wednesday
    ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
    AND
    (CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
    WHEN DATEPART(WEEKDAY,@givenDay) IN(3) THEN DATEADD(DAY,-5,@givenDay)
    WHEN DATEPART(WEEKDAY,@givenDay) IN(4) THEN DATEADD(DAY,-3,@givenDay)
    WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
    ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
    DROP TABLE BusinessTable
    If you have any feedback on our support, you can click
    here.
    Eric Zhang
    TechNet Community Support

Maybe you are looking for