Data between one week or two dates

select sysdate + rownum,
ss.survey_name,
(select count(*)
from candidate_setup x
where x.planned between '01-Nov-2008' and '01-Nov-2008'
and x.survey_name = ss.survey_name) Planned,
(select count(*)
from candidate_setup x
where x.forecast between '01-Nov-2008' and '01-Nov-2008'
and x.survey_name = ss.survey_name) Forecast,
(select count(*)
from candidate_setup x
where x.actual between '01-Nov-2008' and '01-Nov-2008'
and x.survey_name = ss.survey_name) Actual
from candidate_setup st, survey ss
where ss.survey_id = st.survey_id
output of the query
SYSDATE+ROWNUM     SURVEY_NAME     PLANNED     FORECAST     ACTUAL
05-Nov-08 7:19:55 PM     TSSR Submitted     0     0     0
06-Nov-08 7:19:55 PM     TSSR Approved     0     0     0
07-Nov-08 7:19:55 PM     Lease Submitted 0     0     0
08-Nov-08 7:19:55 PM     Lease Approved     0     0     0
but i want this
Week Beginning     Date     CER Submitted          CER Approved          TSS Done          TSSR Submitted     
          Forecast     Actual     Forecast     Actual     Forecast     Actual     Forecast     Actual
Monday     27-Oct-08     1     9     7     5     4     2     1     11     1     7     5     0     0
Wednesda 29-Oct-08     2     9     4     1     0     0     1     5
Thursday 30-Oct-08     4     0     3     0     2     0     1     0
Friday     31-Oct-08     12     0     3     0     5     0     0     0
Saturday 1-Nov-08     7     0     3     0     8     0     1     0
Sunday     2-Nov-08     5     0     8     0     0     0     3     0
Weekly Total          41     18     29     7     26     7     7     6
Means shows the data between two given dates
days + date between '01-Nov-2008' and '01-Nov-2008'
and also compare these two dates in the query
thanks

p.s.
If you want to show us code or data in a nice formatted manner that we can read, then surround it with {noformat}{noformat} tags.  ;)                                                                                                                                                                                                                                                                                                       

Similar Messages

  • POSDM Diff Between : One Step and Two Step Processing Tasks

    Hi All,
    Can you pl give some points on difference between "One Step and Two Step Processing Tasks in POSDM ??
    Thanks!!

    Please consult the SAP Note 980272 on the service marketplace. It gives a detailed description of the difference.

  • Switch between one level and two level tabs

    Hi,
    In my application I'm having many pages manages with tabs.
    Some tabs should have sub tabs other will have none.
    For example Page 1:
    ______________________________________| HOME* | MASTER DATA | TEST |_____
    Page 2
    ______________________________________| HOME | MASTER DATA* | TEST |_____
    | M1* | M2 | M3 |
    Page 3
    ______________________________________| HOME | MASTER DATA* | TEST |_____
    | M1 | M2* | M3 |
    Page 4
    ______________________________________| HOME | MASTER DATA | TEST* |_____
    | T1* | T2 |
    Like you can see Page 1 hast no sub tabs and only the parent tab should be shown (normally this would be One Level Tab Template and for the others it's Two Level Tab Template).But I didn't get it working. I've tried to following:
    Setting page 1 to one level and creating a parent tab set with all required labels will display OK. Creating page 2 with new parent tab set and tabs and two level template.
    Will not show not page 1 parent tab when accessing directly. Access from page 1 will throw error message: "could not find item (123455) on page."
    I don't like to have something like this for page 1, because there twice shown Home, for one page ...
    _________________________| HOME |_______
    | HOME |
    How can this be done in ApEx are there any tricks?
    Thanks
    chrissy

    Chrissy,
    Create a page template as a copy of your two level tabs template and simply remove
    #TAB_CELLS#
    Assign this page template to your page 1.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Difference Between One-way SSL and Two Way SSL

    Hi ,
    Can any tell difference between one way and two ssl. apache to weblogic server which type of ssl we can configure. Please provide information on this.
    thanks

    In short below is the difference:
    One Way SSL - Only the client authenticates the server
    - This means that the public cert of the server needs to configured in the trust store of the client for this to happen.
    Two Way SSL - The client authenticates the server & the server also authenticates the client.
    - This means that the public cert of the server needs to configured in the trust store of the client for this to happen.
    - Also the public cert of the client needs to be configured on the server's trust store
    Please refer to http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=%2Fcom.ibm.mq.csqzas.doc%2Fsy10660_.htm. In case of Two way SSL the step numbers 5 & 6 also occur.
    You can implement either of them between apache and weblogic.
    Hope this helps.
    Thanks,
    Patrick

  • Report with two Command is empty if one of the two commands returns no data

    Hi all,
    I have a report with two Commands not linked together.
    If ONLY one of the two Commands returns no data, the full report is empty (although the other Command returns data).
    I'm using Crystal Report 2008 and the CRJ 12.2.205
    Have an idea?

    Hi Ted,
    how can I solve the problem, please? It is important.
    If I can help yourself, the problem is appeared in many reports since I updated the library (the old library version 11.8.4.1094 works fine with all). I'm waiting for your answer, please.
    Thank you very much.

  • How to restore table data to one week old status

    I have a table vu_med_reimburse and  some of columns are VMR_MM, VMR_YYYY, VMR_ACTUAL_AMT the insert process to this table is done through another program but update of three columns are done throgh another program, by mistake all the values of above mentioned columns are updated to 0 about one week ago, is there any way to recover actual data without backup. the data samples are
    Before Update(one week before)
    VMR_ID     NAME     VMR_MM     VMR_YYYY     VMR_ACTUAL_AMT
    1               X               10               2007                    200.00
    2               Y               09               2008                    130.00
    3               Z               08               2011                    560.00
    After Update(by mistake) (now)
    VMR_ID     NAME     VMR_MM     VMR_YYYY     VMR_ACTUAL_AMT
    1               X               0                         0                         0.00
    2               Y              0                         0                         0.00
    3               Z              0                          0                         0.00
    Please help. Thank you in advance.

    after issuing the sql
    FLASHBACK TABLE vecusr.vu_med_reimburse TO TIMESTAMP TO_TIMESTAMP('2013-10-16 09:30:00', 'YYYY-MM-DD HH:MI:SS');
    it is showing
    ORA-08180: no snapshot found based on specified time
    once again i have run sql after changing the date it is showing
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12801: error signaled in parallel query server P003
    ORA-01555: snapshot too old: rollback segment number 4 with name
    "_SYSSMU4_1152005954$" too small

  • Multiple transformation between one data source & Target

    Hi ,
    Is Multiple transformation between one data source & one Target possible.
    If possible in which way?
    Thanks,
    Erick

    hello,
    No it is not possible,
    you can have different gorups
    or
    in case of Flat File datasource you can copy the datasource give it a different name and then create a new transformation.
    not sure how this works on R/3
    Regards
    Nitin Bhatia

  • Date Range for One Week

    Hai All,
    Is there any possibilities to define a value set that can define date from and to between a week (say monday to saturday) ?
    I have a defined a valueset to select all the date which is on Monday. My plan is to add 7 days to the selected date using the flex option to another value set.
    But I am not able to accomplish it. I am geting the following error.ORA-01861 : Literal does not format string. is this correct or else is there any other option that i can use..
    Regards

    Have a look at [Note: 376034.1 - How to Handle New Date Formats in SQL*Plus and PL/SQL Procedures?|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=376034.1], it may be helpful.

  • Extract data from one CRM in two diferents BI

    Hi Experts,
    Anyone knows if is possible extract information from one CRM (witn only one client) to two different BI??
    Is necessary use the mapbox?
    How configure this?
    Regards,
    Dani

    OK.
    But in:
    SPRO > Integration with Other mySAP.com Components > Strategic Enterprise Management > Define Target Systems (ERP, BI, SEM, cPro)
    Only is possible add one BI system.
    You test the solution???
    Seems that CRM not work like ECC or ERP.
    Regards,
    Dani
    Edited by: Daniel Merino Fernandez on Apr 29, 2010 10:05 AM

  • How do we sync contacts and calendars (ONLY) between two iCloud accounts, two iPhones and one iMac with two user accounts?

    This is complex.  Until today we had one iMac with two user accounts - one for me and the other for my wife.  We sync'd our calendars and contacts between our two user accounts using my iCloud account, thereby keeping our schedules coordinated and our contacts information always the same between us.  Also, as I had an iPhone, I sync'd my phone with my iCloud account, thereby keeping the contacts and calendars in the two user accounts on the iMac AND my iPhone sync'd.  (I also sync'd other things, like Notes and Mail and Safari settings, between my iPhone and my user account on the iMac, but my wife did not want to be burdened with all my emails showing up in her email account and I wasn't interested in hers, etc., so we didn't sync anything between us other than calendars and contacts.)
    We've finally bought my wife an iPhone and set up an iCloud account for her.  And of course she now wants to sync several items from HER account on our iMac to HER iPhone, but I don't want them, just as she doesn't want all of my other stuff.  But we still want our mutual calendars and contacts to sync to HER new iPhone, just like they already do to mine.  But I can't figure out how to CHANGE her iMac user account from using MY iCloud account on the iMac to using HER new iCloud account, and then having HER iCloud account speak to MY iCloud account but share JUST our calendars and contacts.
    Originally I tried a workaround by simply having her iPhone log into my iCloud account.  That works great for the calendars and the contacts.  But...she can't sync anything else from her iMac account to her new iPhone because she's presently "forced" to use my iCloud account.  And neither of us want to sync our other things to each other's iMac accounts or iPhones.  Also as we're both using my iCloud account, in things like the Find My iPhone app, the Cloud is seeking two phones labeled with my name and none with her's.  So we definitely don't want this as the set-up and communications network between our devices.
    We want to set up our users on the iMac to sync to our SEPARATE AND DIFFERENT iCloud accounts and then have those iCloud accounts sync calendars and contacts (ONLY) between themselves, and then push that data to our separate iPhones (or the other way, from either of our iPhones to the individual accounts on our iMac and the other person's iPhone).  Does this description make sense to you?  I've diagramed it nicely using Keynote, but even thiough I can draw it, I can't figure out how to set up and configure all the devices to make it work.  If you would like me to send the Keynote slides (just two of them - the current and desired configurations - please send your email address to me at [email protected] and I'll be happy to forward it to you.
    If anyone can help me set this up I'd be most appreciative!  Thanks so much.  Merry Christmas and Happy New Year to all readers in this community!

    BobT.
    I had the same problem, and decided to look into it last night.
    First of all, the solution I would like to have is for Apple to allow for selection of iCloud accounts per application, i.e. Contacts to one, Photo Stream to another. I believe this would be the most straight forward solution for the problem we are facing. 
    Since this is not an option I came up with a workaround. I was most interested in solving this for Contacts, so this is what I tested for. Now I have all 3 devices with the same contacts.
    1) Turn off iCloud for Contacts on all devices. On the device that has the Contacts list that you would like to propagate to all others select to keep the contacts, and on the others select not to keep them.
       Note that the current backups still exist on iCloud, so in case something goes wrong you can still turn the iCloud for Contacts back on to get your current Contacts back.
    2) In iTunes, sync All Contacts with the phones, starting with the one with the Contacts content you chose to keep.
    From this point on, the 3 devices should sync contacts with each other.
    This, of course, will stop your iCloud backups of Contacts, but I don't think this is really needed. You are already storing copies of your Conacts on 3 devices, which for good parts of the day are likely not all co-located. You also potentially have Time Machine backups turned on, which would mean there is a 4th copy there as well. For the case of Contacts iCloud only complicates matter ... that is until Apple implements the solution I first wrote about.

  • Re: Any one else having trouble w/Safari frequently crashing the last week or two? Any cures? Mine is 4.1.3 Thanks

    Re: Any one else having trouble w/Safari frequently crashing the last week or two? Any cures? Mine is 4.1.3 Thanks

    Please post a copy of the latest crash report.
    Go to your Applications Folder and open your Utilities Folder. Open the application Console.
    In the left-hand column, click on Crash Reporter.
    Click on the small triangle under Crash Reporter in the l/h column and they will all be listed.
    Scroll down to the latest Safari report and click on it.
    Now click on the r/h column (which now only shows THAT crash report and then Command-a to copy it all.
    Come back here and Command-v it to post it here!

  • Any one else having trouble w/Safari frequently crashing the last week or two?  Any cures?  Mine is 4.1.3  Thanks

    Any one else having trouble w/Safari frequently crashing the last week or two?  Any cures?  Mine is 4.1.3  Thanks

    Most Safari problems are due to unsupported plug-ins, add-ons, custom toolbars, or "input manager" software, some of which you may not know you have acquired.
    You best bet is to ask in the Safari forums:
    Safari
    Save a crash report and post it in that forum. People there are amazing at decoding those reports and finding the culprits,

  • How does one do a two way contacts sync between an iphone and outlook? Most of the community has answered as this to be "always so", but it does not work! Changes made on outlook get done in my iPhone, but it does not work the other way around!

    How does one do a two way contacts sync between an iphone and outlook? Most of the community has answered as this to be "always so", but it does not work! Changes made on outlook get done in my iPhone, but it does not work the other way around!

    Close the tab the web page is loaded in (command - W).

  • Trade-off between the one-arm and two-arm WAE designs

    We are configuring a WAE (model 512) for a branch office and I was wondering if someone could please tell me the trade-off between the one-arm and two-arm WAE designs..
    thanks..
    greg..

    if you are using WCCP then the WAE becomes the client withing the servcie groups 61, 62. In order to accelerate both vlans then apply the ip redirect 61 in on the client vlan ineterfaces to the one interface.
    If inline, you can use both 2 port groups for each client interface or trunk all to a single inetrface and configure which vlans you would like to accelerate.
    Now in terms of of using both GE inetrfaces, I would have to check. A topology diagram would help

  • Two AC adapters broken in one week (S510P)

    After one year, suddenly my ac adapter stopped working... the pc stopped to get the charge from it, the power led on the pc was off. The adapter emitted a constant, rythmic buzz, which wasnt normal.
    So i bought a new one, and the pc startes working again.
    After exacly one week the new charger is not excepted again.
    But this time it does not emit strange noises, just a very low constant buzzing but i guess that could be normal.
    What can i do?
    I openes my pc to its bones, and removed the DC IN jack, because im starting to think he is the cause, but i ask here before buying a new jack...
    I mean, if it was the problem i would expect it or to work sporadically and inconsitwntly, or to stop working completly... this all "week extra" i gained changing the charger makes no sense, i dont know... please help

    Heatmiser: This is something of a long shot, but then any other possibility that's occurred to you or occurs to me is at least as long a shot, so humor me and see whether this gets you anywhere.
    Apple AC adapters shut down completely when the AC power supply they're connected to is "dirty." The ringlight goes off and no power is delivered to the computer, for any purpose. When that happens, the remedy is to unplug the adapter from the wall outlet for a minute or so, then plug it back in again. This resets the adapter and it usually starts working normally again, until the next time the AC supply gets dirty and the adapter shuts down again. You can read about this in this article (see #2 in the article).
    If the ringlight went out on either of your adapters for this reason, and you then connected that adapter to the other laptop without first unplugging it from the wall for a minute, the adapter was still shut down when you plugged it into the second computer, and it obviously wouldn't have behaved any differently with that computer until you unplugged it and plugged it back in again. It seems improbable that you carried out all your tests in just such a way as to insure, purely by chance that both adapters had been shut down by dirty line power and not reactivated before testing with the other computer. But I guess it's possible, and the other explanations that come to mind (both adapters or both computers failing simultaneously, in the same way) are all about equally improbable.

Maybe you are looking for

  • USB mouse does not work

    hi All I bought a new HP laptop few days ago,when I installed Win7 pro on it after a few minutes, the usb mouse stopped working. Its light still lights up ,but the cursor does not react. The drivers of the device are installed and working properly. t

  • HP LaserJet 1200 series BW USB problem

    I am unable to re install my HP BW LaserJet 1200 series printer. My system is WIN XP PRO, SP3. The printer was working fine, then something happened and the printer is not listed in Device manager. The printer self check works OK,, but when I plug in

  • Error in the DEPLOY_ONLINE_DEPL phase in Downtime on Dualstack upgrade

    Hi Gurus, again i got struck with another error in the pahse  DEPLOY_ONLINE_DEPL of Downtime. An error has occurred during the execution of the DEPLOY_ONLINE_DEPL phase. Error while executing DeploymentManager phase with action deploySlot. Check the

  • Use of array in multiple formulas

    I need to set up a array that I will use in multiple formulas. Can I create it as a global or shared value in one formula, set the values of the array and then use that array in another formula.  I don't want to have to reset all the values in the ar

  • GetPlus + (R) Error "Installation is corrupt" 16241.202.225

    Today my Adobe Reader would not read a .pdf from my browser.  So I uninstalled Reader 9 and attempted to install Reader 9.1 and got the above error message when loading the Adobe Installation Manager.  Any thoughts?  Evan