day, date and year back to 2004

Start my computer, the date is Thursday, January 15, 2004.  I have to restart the computer and use F2 to correct the date and time. The current date and the computer works well. But as soon as the computer is closed and restarted, the date is Thursday, January 15, 2004. Does anyone have any ideas how can I avoid this?
I am running Windows 7 Ultimate on a Dell Dimension 4600i 32-bit desktop computer. I've updated my Norton 360 software and run it, but that didn't recognize or resolve the problem.
Any help would be welcome!
Nick Bannister

You need to replace the CMOS battery on the motherboard. Open the box and you will see the battery (about the size of a nickel). Model battery is CR2032

I hope this helps.

Tags: Windows

Similar Questions

  • Set the calendar to display day, month and year

    In addition to the time of day, my computer began giving the day of the week (Monday) only instead of day, month and year as it did before. Tried to go back to 29/12/2014 or something similar without success.  Any suggestions?

    Hello

    Sorry for the late reply and I appreciate your patience.

    User profile corruption might have caused the problem. As a solution, I suggest to create a new user profile and check if the date format displays the same thing.

    To do this, see the link below.

    http://Windows.Microsoft.com/en-us/Windows/fix-corrupted-user-profile#1TC=Windows-7.

    It will be useful. Just answer us with the State, and we will be happy to help you.

  • I want to collect rain for the day, month and year; Can what formula I use?

    I want to collect rain for the day, month and year; What formula or expression that I can use.

    I use a Rain Wise product that converts impulses to an analog value.  The rain wise device can be

    "the value measure up to 1", 5", or 10".  I will be setting the unit at 10 inches in increments of 0.01 inch.

    What I would do is at each time increments of signal I would consider it as 0.01 then after reaching

    a period of time a day or a month, back to zero.

    Need some advice on this problem.

    How about you, using a counter to count the number of times where the signal is less than 0.01?

    For example,.

    Counter.Count = signal<=>

    The total number of rain is

    Counter * 10 + signal

    Use TimeOfDay or TimeOfWeek to reset the counter.

  • Date and time back to 2005

    I am running windows XP on my desktop. my date and time back to 2005?  I replaced the CMOS battery, but the problem is finally back in a week or two.

    Hi JeffryBrown,

    You can update the BIOS (Basic Input Output System) and drivers from the chipset & check if the problem persists.

    If you need assistance for updating BIOS (Basic Input Output System), I recommend you contact the manufacturer of your computer to update the BIOS (Basic Input Output System).


    Note:
    change BIOS / chipset can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/chipset can be solved. Changes to settings are at your own risk.

    Hope the helps of information.
    Please post back and we do know.

  • Get the number of days, months and year

    Hi all

    I'm using OBIEE 11 g. I have a line of dash for year (2010, 2011, etc.) and months (Jan, Feb,..., Dec). How can I get the number of days in a given month and year in my report?

    For example, if I choose to Jan & 2011, I'd get 31 and 356. And if I choose Feb & 2011, I would get 28 and 356.

    Thank you!

    I have something more good option here... Try to use this

    DAYOFMONTH (TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (CURRENT_DATE) *-1, TIMESTAMPADD (SQL_TSI_MONTH, 1, CURRENT_DATE)))

    This will give you the days for the month in progress (Oct 2011) after calculating the last day of each month... Similary dynamically pass the value Date or month... You will need to modify this function but shud be simple. Hope this helps :)

  • Manage the values of the actual day, month and year

    Hello

    I am trying to enter digital variables the same day (format: 1 / 10), month (format: 1 / 10) and year (format: 1900). I tried to use this sample:

    "< mx:DateFormatter id ="DDformatter"formatString ="DD"/ > "

    "< mx:DateFormatter id ="MMformatter"formatString ="MM"/ >"

    "< mx:DateFormatter id ="YYYYformatter"formatString ="YYYY"/ >"

    In the Script:

    private var actualDate: Date = new Date();

    [Bindable] private var actualDay:String = DDformatter(actualDate) .format.

    [Bindable] private var actualMonth:String = MMformatter(actualDate) .format.

    [Bindable] private var actualYear:String = YYYYformatter(actualDate) .format.

    Part of getting an error when I run my application (am I missing some import?) I would like to have these data in numerical variables:

    #1009 error - cannot access a property or method of a null object reference.

    Pls find the solution of your problem... Let me know if you have any problem.

    MainApplication.mxml

    http://www.Adobe.com/2006/mxml '.

    layout = "absolute" creationComplete = "onCreationComplete ()" > "

    private var actualDate:Date = new Date();

    [Bindable]

    private var actualDay:String;

    [Bindable]

    private var actualMonth:String;

    [Bindable]

    private var actualYear:String;

    private function onCreationComplete():void

    {

    actualDay = DDformatter.format (actualDate);

    actualMonth = MMformatter.format (actualDate);

    actualYear = YYYYformatter.format (actualDate);

    }

    ]]>

    with respect,

    Mayeul Singh Bartwal

  • split with day, month and year in a date

    Hi all

    I have this point of view

    with (id, dt) t (select 1, to_date('02/06/2010','MM/DD/YYYY') of all the double union)
    Select 2, to_date('11/29/2001','MM/DD/YYYY') of all the double union
    Select 3, to_date('02/06/2011','MM/DD/YYYY') of all the double union
    Select option 4, double to_date('10/10/2011','MM/DD/YYYY')
    )
    --
    -end of test data
    --
    SELECT id, dt
    floor (months_between(sysdate,dt)/12) years
    , floor (mod (months_between (sysdate, dt), 12)) months
    -The day is ambiguous because of the number of days in a different month
    -you could design your own algorithm to give the desired results, but it is a good approximation
    , floor (sysdate-(add_months (dt, floor (months_between (sysdate, dt))) as dys
    t
    /
    ID DT YEARS MONTHS DYS
    ---------- ----------- ---------- ---------- ----------
    1-6 FEBRUARY 2010 5 8 22
    2 29 NOVEMBER 2001 13 10 29
    3-6 FEBRUARY 2011 4 8 22
    4-10 OCTOBER 2011 4 0 18

    As a result, 26 years old, 26 months, 91 days.


    And subtract years, MONTHS and DYS as format

    erase years, from 1 to 12 months and the days of the 1 to 30 as

    91 days = 30 x 3 + 1 = > 1 day over 3 months

    26 months + 3 months = 29 months = > 24 months + 5 months = 2 years + 5 months

    and 26 years + 2 years = 28

    desire to result: 28 years, 5 months and 1 day.

    Is there a function that give me this result from the query above?

    Kind regards

    Gordan

    Hello Gordan,.

    I understand that you are the SUM of all the lines.

    Here are two ideas:

    -1 - using a date
    (a) SUM (TRUNC (sysdate) - dt)
    I would give you the total number of days.
    (b) adding the number of days to, for example, DATE ' 1900-01-01' would give another date...
    (c) simply subtract the years 1900 and it takes several years,
    subtract 1 from the month (1-12 from January to December) and you have the number of months
    subtract 1 from the day of the month (1-31) and you have the number of days.
    It is of course 'approximate' as the months do not have the same number of days...

    -2 - using only the number of days
    Maybe you want something else, for example: the total number of days divided by 365.25 for many years, the recall divided by 30 to get the number of months, the reminder being the number of days.

    (a) SUM (TRUNC (sysdate) - dt)

    I would give you the total number of days.

    (b) Division by 365.25 (le.25 is to take leap years into account, but you can choose for example "365")

    (c) number of reminder of days (total - years * 365.25): divided by 30 is the number of months

    (d) number reminder of days (total - years * 365.25 - months * 30): gives the number of days.

    The following two options with your test data (by chance, this gives the same result in this case)

    option 1:
    with (id, dt) t (select 1, to_date('02/06/2010','MM/DD/YYYY') of all the double union)
    Select 2, to_date('11/29/2001','MM/DD/YYYY') of all the double union
    Select 3, to_date('02/06/2011','MM/DD/YYYY') of all the double union
    Select option 4, double to_date('10/10/2011','MM/DD/YYYY')
    )
    target_date AS
    (SELECT DATE ' 1900-01-01' + SUM (TRUNC (sysdate) - t.dt) FROM t trgt)
    in_pieces AS
    (SELECT TO_NUMBER (TO_CHAR (td.trgt, 'YYYY')) - 1900 y
    , TO_NUMBER (TO_CHAR (td.trgt, 'MM')) - 1 m
    , TO_NUMBER (TO_CHAR (td.trgt, 'DD')) - 1 d
    Target_date TD
    )
    SELECT "result: ' |"
    TRIM (CASE WHEN ip.y = 0 THEN NULL
    WHEN ip.y = 1 THEN "1 year"
    Of OTHER TO_CHAR (ip.y) | "years".
    END |
    CASE WHEN ip.m = 0 THEN NULL
    WHEN ip.m = 1 THEN "1 month"
    Of OTHER TO_CHAR (ip.m) | 'months '.
    END |
    CASE WHEN ip.d = 0 THEN NULL
    WHEN ip.d = 1 THEN "1 day"
    Of OTHER TO_CHAR (ip.d) | 'days '.
    END
    )
    Of in_pieces ip
    ;
    result: 28 years, 4 months and 28 days

    option 2:

    with (id, dt) t (select 1, to_date('02/06/2010','MM/DD/YYYY') of all the double union)
    Select 2, to_date('11/29/2001','MM/DD/YYYY') of all the double union
    Select 3, to_date('02/06/2011','MM/DD/YYYY') of all the double union
    Select option 4, double to_date('10/10/2011','MM/DD/YYYY')
    )
    nb_days AS
    (SELECT SUM (TRUNC (sysdate) - t.dt) n t)
    , y AS
    (SELECT Nb.n, FLOOR (nb.n / 365.25) y nb_days n. b.)
    ym AS
    (SELECT y.n, y.y, FLOOR ((y.n-y.y * 365,25) / 30) FROM a)
    ymd AS
    (SELECT ym.y, ym.m, ym.n - ym.y * 365.25 - ym.m * ym FROM 30 d)
    SELECT "result: ' |"
    TRIM (CASE WHEN ymd.y = 0 THEN NULL
    WHEN ymd.y = 1 THEN "1 year"
    Of OTHER TO_CHAR (ymd.y) | "years".
    END |
    CASE WHEN ymd.m = 0 THEN NULL
    WHEN ymd.m = 1 THEN "1 month"
    Of OTHER TO_CHAR (ymd.m) | 'months '.
    END |
    CASE WHEN ymd.d = 0 THEN NULL
    WHEN ymd.d = 1 THEN "1 day"
    Of OTHER TO_CHAR (ymd.d) | 'days '.
    END
    )
    WAN
    ;
    result: 28 years, 4 months and 28 days

    Best regards

    Bruno Vroman.

  • SQL queries for the date and year

    Hi friends,

    I have a named view - item_sales with 4 columns

    Item code

    Name of the element

    Transaction_YYYYMM (Date stored in a format YYYYMM)

    QTY_RECEIVED

    QTY_SOLD

    Sample data is

    ITEM_CODE POINT NAME TRANSACTION_YYYMM QTY_RECD QTY_SOLD

    TSHIRT 201307 3000 2000 AX

    TSHIRT AX 500 2000 201308

    TSHIRT 201309 1000 3000 AX

    CX 201307 3000 2000 XLSHIRT

    XLSHIRT CX 201308 3000 2500

    CX 201309 3000 2500 XLSHIRT

    END OF EACH MONTH I'LL RUN THIS QUERY TO FIND OUT THE DETAILS BELOW

    1. TO FIND NOM_ELEMENT WISE - QTY_RECEIVED AND QTY_SOLD (FOR THE CURRENT MONTH - EXAMPLE SEP)

    2. TO FIND NOM_ELEMENT WISE - QTY_RECEIVED AND QTY_SOLD (EXAMPLE EXERCISE OF JAN TO SEP)

    OUTPUT FOR SEPTEMBER MONTH LOOK LIKE THIS

    SEVEN MONTHS JAN TO SEP

    ITEM_CODE NOM_ELEMENT QTY_RECEIVED QTY_RECEIVED QTY_SOLD QTY_SOLD

    TSHIRT 1000, 3000, 6000, 5500 AX

    CX 3000 2000 9000 7000 XLSHIRT

    Pls advise me how to write queries for this

    RDK

    Hello

    This is called a Pivot, and here's a way to do it:

    WITH got_display_yyyymm AS

    (

    SELECT TO_CHAR (ADD_MONTHS (SYSDATE-1)

    , "YYYYMM.

    ) AS YYYYMM

    OF the double

    )

    SELECT i.item_code

    i.item_name

    SUM (CASE

    WHEN i.transaction_yyyymm = d.yyyymm

    THEN i.qty_received

    END

    ) AS month_received

    SUM (CASE

    WHEN i.transaction_yyyymm = d.yyyymm

    THEN i.qty_sold

    END

    ) AS month_sold

    SUM (CASE

    WHEN SUBSTR (i.transaction_yyyymm, 1, 4)

    = SUBSTR (d.yyyymm, 1, 4)

    THEN i.qty_received

    END

    ) AS year_received

    SUM (CASE

    WHEN SUBSTR (i.transaction_yyyymm, 1, 4)

    = SUBSTR (d.yyyymm, 1, 4)

    THEN i.qty_sold

    END

    ) AS year_sold

    Item_sales I have

    CROSS JOIN got_display_yyyymm d

    I.item_code GROUP, i.item_name

    ORDER BY i.item_code, i.item_name

    ;

    If you would care to post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data, then I could test it.

    The subquery got_display_yyyymm digit which is the previous month; It is not to change anything from month to month.  If you run the query in October 2013, then YYYYMM Gets the value '201309'.  If you run it in January 2014, then YYYYMM will be '201312'.

    As posted, it will work in Oracle 9.1 or higher.  The SELECT... PIVOT function that was introduced in Oracle 11.1 would not help in this problem, so you do not miss anything using Oracle 10 in this case.

  • How to keep the date and time back to December 2002, every time I restart?

    Date incorect prevents some programs running, so I have to keep resetting in Control Panel.

    Hello

    Your CMOS battery is probably dead (it's the battery that keeps 'Ticktock' even when the PC is not powered clock of your PC). If you provide your details, the original range model number PC, I might be able to help more to help you locate. It looks like this, if you have a desktop computer...

    If you have a laptop, replacement can be very complex.

    Tricky

  • laptop resets date and time back to factory on each reboot. Also removes the drivers for the cards and the outlook settings.

    Machine removes the drivers for the wireless card, also changes some settings in outlook after each reboot.

    Hi Jim,.

    You could try replacing the CMOS battery, as it appears to have failed.

    http://www.computerhope.com/issues/ch000239.htm

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Date and time will come back 4 years every time when Vista restarts

    whenever I restart my pc, the time and the date was 4 years ago and my updates stop works to start specially my antivirus AVG ver 9, is the virus? settings or, even more I also get an error of checksum on starting and pressing the F1 key, it continues to boot the system.

    Please help me ASAP no matter who

    Instead of F1, enter the BIOS and then exit it save the changes. Then, the
    checksum will be fixed.

    --
    ..
    --
    "Amir Puri" wrote in message news: f87bea8f-4e63-493-b891-54da5cdf0fab...
    > every time I restart my pc time and date will come back 4 years and my
    > updates to stop working on startup especially my antivirus AVG ver 9, it
    > the virus? or other settings, plus I get also a checksum
    at startup and pressing the F1 key it still boot the system.
    >
    > Please help me ASAP no matter who
    >

  • How to find the next date of the year and day as of today's date and the day

    I have a question about date functions, that is to say: how to get one next year (date and day) like today are the date and the day this year?

    You mean like this?

    SQL > select to_char (add_months (sysdate, 12),' day DD/MM/YYYY ') twice;

    TO_CHAR (ADD_MONTHS (S
    --------------------
    Friday, August 22, 2014

  • Date and days for the entire year come in the column

    Hi all

    I have 2 column 1 is the Date and day 2

    And I have a button, I need when I press enter then his show all the year date in the date and day column in the column of day for example

    Date - day+.
    * 1 - jan - 2009 - Thursday *.
    * 2 - jan - 2009 - Friday *.
    * 3 - jan - 2009 - Saturday *.



    And like on

    I hope that you guys understand

    Concerning

    Wasim Ismail

    Hai,

    This means, you must fill in the block record multi that has 2 columns (1 is the date, and the other is updated.).

    For this try this in the trigger WHEN BUTTON PRESSED the button.

    DECLARE
         Dt_Date DATE;
    BEGIN
         GO_BLOCK ('');
         CLEAR_BLOCK(NO_VALIDATE);
         FIRST_RECORD;
         Dt_Date := TO_DATE('01-JAN-2009');
         LOOP
              :.TI_DATE := TO_CHAR(Dt_Date, 'DD-MON-YYYY');
              :.TI_DAY  := TO_CHAR(Dt_Date, 'DAY');
              EXIT WHEN TO_CHAR(Dt_Date, 'YYYY') <> TO_CHAR(Dt_Date + 1, 'YYYY');   -- If next year reaches, exit from the loop.
              Dt_Date := Dt_Date + 1;
              NEXT_RECORD;
         END LOOP;
    END;          
    

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • Hello. I bought Lightroom, paid license 1 year view, did not have serial. E number and then past the 30 day trial and may not use the product or work more hard. I paid has been deducted from my credit card. How I'm going to work now?

    Hello. I bought Lightroom, paid license 1 year view, did not have serial. And number and then past the 30 day trial and may not use the product or work more hard. I paid has been deducted from my credit card. How I'm going to work now?

    Hi Sergior96769872,

    I saw your Adobe ID (email address), you used to post on the forums, and I see an active subscription on it.

    Please see Help below links: { make sure you use the same Adobe ID (email address) that you used to purchase the subscription }

    Connect and disconnect activate Cloud Creative applications

    Adobe Creative Cloud apps back in test mode after 2015 set CC to update

    * NOTE: Make sure that your firewall of your computer or security software firewall does not block Adobe, if you are not sure of it can just disable the firewall for a while and then log off and log on creative application of cloud and check.

    If it still gives you an error of the trial, then please refer to the troubleshooting listed below:

    If you are using MAC:

    1-force Quit the sub process in the same sequence as shown below from Activity Monitor: see, use the monitor activity on your Mac - Apple Support

    • Creative cloud
    • Basic timing & sync to basic support
    • CC library & process CCX
    • Adobe Common Desktop
    • Adobe update daemon
    • Broker CIB Adobe
    • After that, everything that said adobe on it do a force quit for her

    2 - right click on the Finder icon, then select the "Go - To" folder. You will get a text box, type in the following command and then press the 'return '. ("Not to be missed ~ symbol")

    ~/Library (it will open the folder of the user's library.)

    3. browse to the Application Support > Adobe > trash OOBE folder and folder AAM Updater

    4 - CUT any installed security software with firewall system.

    5 - go to: Apple icon > system preferences > Security & Privacy > General > "allow applications downloaded on" change this anywhere (to make these changes click the padlock in the corner at the bottom left of this window and enter your computer password)

    These changes are temporary you can restore these changes back to normal once your creative cloud app is running *.

    6 - restart the cloud creative app and connect


    If you use the WINDOW:

    1 complete the process / Task Manager tasks in the same order, as mentioned below the Manager tasks. See, Open the Task Manager

    • Creative cloud
    • Basic timing & sync to basic support
    • CC library & process CCX
    • Adobe Common Desktop
    • Adobe update daemon
    • Broker CIB Adobe
    • After that, everything that said adobe on it do a force quit for her

    2 - C:\Users\\AppData\Local\Adobe\ MAA UPDATER and two OOBE (App data & Program Data is hidden folder please see, Show files and folders hidden in Windows 7, 8.x, 10, or Vista)

    3 - CUT any security software installed with firewall system, also if your having any browser Add On installed for blocking advertising that turn off too.

    These changes are temporary you can restore these changes back to normal once your creative cloud app is running *.

    4 - raise the cloud creative app and connect

    Let us know if that helps.

  • find the date and day

    transaction

    ID Grp Loc qty type report_days

    ABC x 21 101 1 4/1/2009
    ABC x 29 101 2 4/1/2009
    ABC x 22 101 3 4/1/2009
    ABC x 45 101 1 15/6 / 2008
    ABC 100 x 102 1 16/11/2008

    I have a table called transaction

    I want to generate a report like this in an another table generatereport

    GenerateReport

    GenerateReport

    ID Grp Loc qty1 2 days report_days

    ABC 101 x 0 0 Sunday, June 1, 2008 adding 7 days
    101          abc          x          0          0          Sunday          ..
    ABC 101 x 45 0 Monday, June 15, 2009
    ABC 101 x 100 0 Sunday, November 16, 2008
    101          abc          x          0          0          Sunday          …
    101 abc x 50 22 Sunday until 01/04/2009 (i.e. ONE year)


    Qty1 Generatereport table column is filled with the sum of the quantity of type 1 + type 2

    column 2 of table Generatereport is filled with the sum of the quantity of type 3

    All day should be Sunday

    and we must go a year back from 01/04/09 and generate the timetable up to 2009-04-01 only for Sundays

    can you help me pls

    Thanks in advance

    Published by: user12093849 on November 13, 2009 04:55

    Published by: user12093849 on November 13, 2009 04:58

    This is the query, I came up with that:

    WITH    transaction_table AS
    (
            SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 21  AS QTY, 1 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
            SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 29  AS QTY, 2 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
            SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 22  AS QTY, 3 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
            SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 45  AS QTY, 1 AS TYPE, TO_DATE('06/15/2008','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
            SELECT  102 AS ID, 'abc' AS GRP, 'x' AS LOC, 100 AS QTY, 1 AS TYPE, TO_DATE('11/16/2008','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL
    )
    -- END TEST DATA
    ,      sunday_date_range AS
    (
            SELECT  NEXT_DAY(TO_DATE(:pStartDate,'MM/DD/YYYY')-1,'SUNDAY') + 7*(LEVEL - 1) AS DT
            FROM    DUAL
            CONNECT BY LEVEL <= (TO_DATE(:pEndDate,'MM/DD/YYYY') - TO_DATE(:pStartDate,'MM/DD/YYYY'))/7 + 1
    )
    SELECT  ID
    ,       GRP
    ,       LOC
    ,       TO_CHAR(DT,'Day DD/MM/YYYY')    AS REPORT_DAYS
    ,       SUM(CASE WHEN TYPE IN (1,2)     THEN QTY ELSE 0 END) AS QTY1
    ,       SUM(CASE WHEN TYPE = 3          THEN QTY ELSE 0 END) AS QTY2
    FROM                    transaction_table       PARTITION BY (ID, GRP, LOC)
    RIGHT OUTER JOIN        sunday_date_range       ON transaction_table.REPORT_DAYS BETWEEN sunday_date_range.DT - 7 + INTERVAL '1' SECOND AND sunday_date_range.DT
    GROUP BY ID
    ,       GRP
    ,       LOC
    ,       DT
    ORDER BY 1, 2, 3
    

    Here's the test scenario:

    SQL> var pStartDate  VARCHAR2(25);
    SQL> exec :pStartDate := '04/01/2008';
    
    PL/SQL procedure successfully completed.
    
    SQL> var pEndDate  VARCHAR2(25);
    SQL> exec :pEndDate := '04/01/2009';
    
    PL/SQL procedure successfully completed.
    
    SQL> WITH    transaction_table AS
      2  (
      3          SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 21  AS QTY, 1 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
      4          SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 29  AS QTY, 2 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
      5          SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 22  AS QTY, 3 AS TYPE, TO_DATE('04/01/2009','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
      6          SELECT  101 AS ID, 'abc' AS GRP, 'x' AS LOC, 45  AS QTY, 1 AS TYPE, TO_DATE('06/15/2008','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL UNION ALL
      7          SELECT  102 AS ID, 'abc' AS GRP, 'x' AS LOC, 100 AS QTY, 1 AS TYPE, TO_DATE('11/16/2008','MM/DD/YYYY') AS REPORT_DAYS FROM DUAL
      8  )
      9  -- END TEST DATA
     10  ,      sunday_date_range AS
     11  (
     12          SELECT  NEXT_DAY(TO_DATE(:pStartDate,'MM/DD/YYYY')-1,'SUNDAY') + 7*(LEVEL - 1) AS DT
     13          FROM    DUAL
     14          CONNECT BY LEVEL <= (TO_DATE(:pEndDate,'MM/DD/YYYY') - TO_DATE(:pStartDate,'MM/DD/YYYY'))/7 + 1
     15  )
     16  SELECT  ID
     17  ,       GRP
     18  ,       LOC
     19  ,       TO_CHAR(DT,'Day DD/MM/YYYY')    AS REPORT_DAYS
     20  ,       SUM(CASE WHEN TYPE IN (1,2)     THEN QTY ELSE 0 END) AS QTY1
     21  ,       SUM(CASE WHEN TYPE = 3          THEN QTY ELSE 0 END) AS QTY2
     22  FROM                    transaction_table       PARTITION BY (ID, GRP, LOC)
     23  RIGHT OUTER JOIN        sunday_date_range       ON transaction_table.REPORT_DAYS BETWEEN sunday_date_range.DT - 7 + INTERVAL '1' SECOND AND sunday_date_range.DT
     24  GROUP BY ID
     25  ,       GRP
     26  ,       LOC
     27  ,       DT
     28  ORDER BY 1, 2, 3
     29  /
    
            ID GRP L REPORT_DAYS                QTY1       QTY2
    ---------- --- - -------------------- ---------- ----------
           101 abc x Sunday    06/04/2008          0          0
           101 abc x Sunday    13/04/2008          0          0
           101 abc x Sunday    20/04/2008          0          0
           101 abc x Sunday    27/04/2008          0          0
           101 abc x Sunday    04/05/2008          0          0
           101 abc x Sunday    11/05/2008          0          0
           101 abc x Sunday    18/05/2008          0          0
           101 abc x Sunday    25/05/2008          0          0
           101 abc x Sunday    01/06/2008          0          0
           101 abc x Sunday    08/06/2008          0          0
           101 abc x Sunday    15/06/2008         45          0
           101 abc x Sunday    22/06/2008          0          0
           101 abc x Sunday    29/06/2008          0          0
           101 abc x Sunday    06/07/2008          0          0
           101 abc x Sunday    13/07/2008          0          0
           101 abc x Sunday    20/07/2008          0          0
           101 abc x Sunday    27/07/2008          0          0
           101 abc x Sunday    03/08/2008          0          0
           101 abc x Sunday    10/08/2008          0          0
           101 abc x Sunday    17/08/2008          0          0
           101 abc x Sunday    24/08/2008          0          0
           101 abc x Sunday    31/08/2008          0          0
           101 abc x Sunday    07/09/2008          0          0
           101 abc x Sunday    14/09/2008          0          0
           101 abc x Sunday    21/09/2008          0          0
           101 abc x Sunday    28/09/2008          0          0
           101 abc x Sunday    05/10/2008          0          0
           101 abc x Sunday    12/10/2008          0          0
           101 abc x Sunday    19/10/2008          0          0
           101 abc x Sunday    26/10/2008          0          0
           101 abc x Sunday    02/11/2008          0          0
           101 abc x Sunday    09/11/2008          0          0
           101 abc x Sunday    16/11/2008          0          0
           101 abc x Sunday    23/11/2008          0          0
           101 abc x Sunday    30/11/2008          0          0
           101 abc x Sunday    07/12/2008          0          0
           101 abc x Sunday    14/12/2008          0          0
           101 abc x Sunday    21/12/2008          0          0
           101 abc x Sunday    28/12/2008          0          0
           101 abc x Sunday    04/01/2009          0          0
           101 abc x Sunday    11/01/2009          0          0
           101 abc x Sunday    18/01/2009          0          0
           101 abc x Sunday    25/01/2009          0          0
           101 abc x Sunday    01/02/2009          0          0
           101 abc x Sunday    08/02/2009          0          0
           101 abc x Sunday    15/02/2009          0          0
           101 abc x Sunday    22/02/2009          0          0
           101 abc x Sunday    01/03/2009          0          0
           101 abc x Sunday    08/03/2009          0          0
           101 abc x Sunday    15/03/2009          0          0
           101 abc x Sunday    22/03/2009          0          0
           101 abc x Sunday    29/03/2009          0          0
           101 abc x Sunday    05/04/2009         50         22
           102 abc x Sunday    06/04/2008          0          0
           102 abc x Sunday    13/04/2008          0          0
           102 abc x Sunday    20/04/2008          0          0
           102 abc x Sunday    27/04/2008          0          0
           102 abc x Sunday    04/05/2008          0          0
           102 abc x Sunday    11/05/2008          0          0
           102 abc x Sunday    18/05/2008          0          0
           102 abc x Sunday    25/05/2008          0          0
           102 abc x Sunday    01/06/2008          0          0
           102 abc x Sunday    08/06/2008          0          0
           102 abc x Sunday    15/06/2008          0          0
           102 abc x Sunday    22/06/2008          0          0
           102 abc x Sunday    29/06/2008          0          0
           102 abc x Sunday    06/07/2008          0          0
           102 abc x Sunday    13/07/2008          0          0
           102 abc x Sunday    20/07/2008          0          0
           102 abc x Sunday    27/07/2008          0          0
           102 abc x Sunday    03/08/2008          0          0
           102 abc x Sunday    10/08/2008          0          0
           102 abc x Sunday    17/08/2008          0          0
           102 abc x Sunday    24/08/2008          0          0
           102 abc x Sunday    31/08/2008          0          0
           102 abc x Sunday    07/09/2008          0          0
           102 abc x Sunday    14/09/2008          0          0
           102 abc x Sunday    21/09/2008          0          0
           102 abc x Sunday    28/09/2008          0          0
           102 abc x Sunday    05/10/2008          0          0
           102 abc x Sunday    12/10/2008          0          0
           102 abc x Sunday    19/10/2008          0          0
           102 abc x Sunday    26/10/2008          0          0
           102 abc x Sunday    02/11/2008          0          0
           102 abc x Sunday    09/11/2008          0          0
           102 abc x Sunday    16/11/2008        100          0
           102 abc x Sunday    23/11/2008          0          0
           102 abc x Sunday    30/11/2008          0          0
           102 abc x Sunday    07/12/2008          0          0
           102 abc x Sunday    14/12/2008          0          0
           102 abc x Sunday    21/12/2008          0          0
           102 abc x Sunday    28/12/2008          0          0
           102 abc x Sunday    04/01/2009          0          0
           102 abc x Sunday    11/01/2009          0          0
           102 abc x Sunday    18/01/2009          0          0
           102 abc x Sunday    25/01/2009          0          0
           102 abc x Sunday    01/02/2009          0          0
           102 abc x Sunday    08/02/2009          0          0
           102 abc x Sunday    15/02/2009          0          0
           102 abc x Sunday    22/02/2009          0          0
           102 abc x Sunday    01/03/2009          0          0
           102 abc x Sunday    08/03/2009          0          0
           102 abc x Sunday    15/03/2009          0          0
           102 abc x Sunday    22/03/2009          0          0
           102 abc x Sunday    29/03/2009          0          0
           102 abc x Sunday    05/04/2009          0          0
    
    106 rows selected.
    

    This query performs a number of things.

    1. the sunday_date_range generates all the Sunday between the pStartDate and the pEndDate

    2. I've made use of a JOIN OUTSIDE of SCORE to generate the date range for EACH ID, GRP and LOC. If you do not have 10g, to implement an alternative workaround.

    3. I join on a date range for a little less than 7 days if all report data fall date Sunday by your condition. This is because on 01/04/2009 is not a Sunday.

    HTH!

Maybe you are looking for