Get dates for the Monday of the week of the year for 3 years

I try to get the dates for on Monday for the last 3 years.

I am currently using a query that does not provide the correct results. I tried to format it with IW and WW for the week.

Y at - it an easy way to get the list of dates every Monday beginning in 2007.

Best regards
Sumit.
select  trunc(date '2006-12-31','iw') + 7 * level monday
  from  dual
  connect by trunc(date '2006-12-31','iw') + 7 * level <= sysdate
  order by level
/

MONDAY
---------
01-JAN-07
08-JAN-07
15-JAN-07
22-JAN-07
29-JAN-07
05-FEB-07
12-FEB-07
19-FEB-07
26-FEB-07
05-MAR-07
12-MAR-07

MONDAY
---------
19-MAR-07
26-MAR-07
02-APR-07
09-APR-07
16-APR-07
23-APR-07
30-APR-07
07-MAY-07
14-MAY-07
21-MAY-07
28-MAY-07

MONDAY
---------
04-JUN-07
11-JUN-07
18-JUN-07
25-JUN-07
.
.
.

SY.

Tags: Database

Similar Questions

  • Y510 unable to get data from the camera.

    Hello

    I have a Y510 with Windows Vista 32 bit, 3 GB RAM, only 5 weeks. I get this message when I try to use Veriface, "unable to get data from the camera. The camera may have been disconnected or busy. I reinstalled Vista of the State in which the laptop came, but it does not work. I also updated the bios and install other updates were available. I would appreciate any advice.

    Thank you

    Peter

    I wish it was as easy as press Fn + Esc, I looked through an another Y510 our office and managed to find a process that must be set to Auto, the process is KtmRm. This process cannot be disabled, handicapped, or on a time delay, it must be AUTOMATIC.

  • To get the last date of the year

    Can someone tell me how to get the date of the year from the first date of last year:
    My query below gives the last date of the month

    SELECT LAST_DAY (ADD_MONTHS (TO_DATE (JANUARY 1, 2012 "," DD/MM/YYYY '), 12-))
    TO_NUMBER (to_char (sysdate, 'mm'))) OF the DOUBLE

    Thnx in advance
    SELECT LAST_DAY (ADD_MONTHS (TO_DATE ('01/01/2012', 'DD/MM/YYYY'), 11))
      FROM DUAL
    
  • Getting data from the nodes of event data

    Hi all

    I have a while loop with a Structure of the event and a Structure of case inside. The Structure of the event a lot of cases, and each of them is controlled by a different object (buttons, sliders, graphics, etc.). Sometimes, I have to use data from the nodes of event data to power a Business Structure that works like a State Machine in my code. To clean the block diagram, I want to 'export' data nodes using a single wire event data, but this is not possible because there is a conflict of data, since I get data of CtlRef in one case and Coords in others (for example).

    To resolve this problem, I'm feeding a beam to create a cluster and feed it to the box Structure data. However, the process is so painful, because I have to feed the Bundle function with constants of all sorts of data connected to him.

    Find attached an example. It is not the actual code but shows what I have to do.

    Thank you

    Dan07

    Why you do not pass a Variant to the structure of the case. In your case case simply make a variant of the appropriate data that you want to pass. I guess the case appropriate business structure will be to get called for the event. Given that you need to know the data type this case awaits can use the variant data VI and now you have the data you want.

  • Do not get data in the target after the beginning of the session.

    Hello

    I applied the filter. source and target table are Oracle database tables. Source have data. Target of no data. I chose insert, update, commit as true in the properties of the target. Eventhough

    After the execution, I do not receive data in the tables of the target. Please check below the images.

    Thanks in advance,

    A.Kavya.

    err1.png

    192.168.0.png

    err2.png

    Hello

    Screen capture, I see you used LKM as well. Then, probably, you can start by consulting the table loading step $ CAN to see how many rows were loaded into C$ source table.

    If you have data in C$ then next step would be to check the data loaded in I$ table. I can see screenshots that you set the false Frother so that your data can not go to E$. PS please check where your data falls to C$ I $ loading.

    You can restart the interface and you can set the property 'drop of temporary objects' false so that C$ I $ table not deleted and are there for analysis.

    It will be useful.

    Thank you

    Ajay

  • How to get data in the procedure after CREATE TABLE table1 AS SELECT * from table2

    Hello

    can any body tell me how to get the data in the new table created in the procedure. because it gives following error.

    • Error (47,21): PL/SQL: ORA-00942: table or view does not exist

    tableName: = "BCKUP_" | TO_CHAR (sysdate, 'ddmmrrrr');

    tableDDL: = 'CREATE TABLE' | tableName. "AS SELECT * FROM Table1 where to_char(MSG_IN_TIME,''dd-mon-rrrr'') < sysdate - ' | daysNumber;

    EXECUTE IMMEDIATE backUpDDL;

    COMMIT;

    DELETE FROM Table1;

    How to select the data in the newly created table. as...

    Select * from ". tableName;

    Do not choose anything to get the number...

    Just after backupDDL EXECUTE IMMEDIATE, simply refers to SQL % ROWCOUNT - who will be the number of lines.

    Oh and DDL engages automatically, your commitment is redundant.

  • get data on the performance of the virtual machine

    Hello community,

    I am trying to obtain performance data from a virtual machine using the following code:

    //create start & stop time 
    var end = new Date(); // now
    var start = new Date();
    start.setTime(end.getTime() - 3600000); // 1h before end
    //create a querySpec for one entity
    var querySpec = new Array();
    querySpec.push(new VcPerfQuerySpec());
    querySpec[0].entity = VM.reference; //set entity of workflow VM
    querySpec[0].startTime = start;
    querySpec[0].endTime = end;
    //creteate PerfMetricID for one metric
    var PM = new VcPerfMetricId();
    PM.counterId = 2;
    PM.instance = "";
    var arrPM = new Array();
    arrPM.push(PM);
    querySpec[0].metricId = arrPM; //assign PerfMetric to querySpec
    querySpec[0].intervalId = 20;
    querySpec[0].format = "csv";
    
    var CSV = VM.sdkConnection.perfManager.queryPerf(querySpec);  // query PerformanceManager
    System.log (CSV);// show if type is OK
    //show properties
    System.log (CSV.entity);
    System.log (CSV.value);
    System.log (CSV.sampleInfoCSV);
    System.log (CSV.dynamicProperty);
    

    The workflow is valid and functional. But there is no data. Here's the log produced by the workflow:

    [2010-11-12 12:12:53.742] [I] DynamicWrapper (Instance) : [VcPerfEntityMetricCSV]-[http://class com.vmware.vim.vi4.PerfEntityMetricCSV|http://class com.vmware.vim.vi4.PerfEntityMetricCSV] -- VALUE : com.vmware.vim.vi4.PerfEntityMetricCSV@beb35d25
    [2010-11-12 12:12:53.742] [I] undefined
    [2010-11-12 12:12:53.742] [I] undefined
    [2010-11-12 12:12:53.742] [I] undefined
    [2010-11-12 12:12:53.742] [I] undefined
    

    I also tried .format querySpec [0] = 'normal '; -same result.

    Where is my fault? I'm on the right track?

    Pls support me in obtaining data on performance, Thx.

    -


    Kind regards, Andreas Diemer

    visit http://www.vcoteam.info & http://mighty-virtualization.blogspot.com/

    SERVUS Andreas!

    I think I got to the next step:

    perfManager.queryPerf (...) returns a table, not the CSV values itself. Therefore, pop() data in the result table.

    A change in your code that returns a large amount of data in my lab:

    var CSVArr = VM.sdkConnection.perfManager.queryPerf (querySpec);  query PerformanceManager

    System.log (CSVArr) ;// show if the type is OK

    view properties

    var CSV = CSVArr.pop ();

    System.log (CSV.entity);

    System.log (CSV.value);

    System.log (CSV.sampleInfoCSV);

    System.log (CSV.dynamicProperty);

    But I do not know why the System.log (CSVArr) does not show the array as a type... (maybe because there is only one item!)

    Edit: found the answer:

    ... - VALUE: com.vmware.vim.vi4.PerfEntityMetricCSV@229650a8 versus

    ..... VALUE: com.vmware.vim.vi4.PerfMetricSeriesCSV@5d7f26

    "Once again learned!"

    BTW: I found the idea with the table on the slide 59 of this presentation:

    http://communities.VMware.com/servlet/JiveServlet/download/1371233-29453/vSphereAPI_PerfMonitoring.PDF

    Hope this helps

    See you soon,.

    Joerg

    PS: How can you add not formatted 'verbatim' sourcecode-style here in the forums?

  • Get data when the mouse is moved on the line chart

    Hello

    I have a line chart drawn. I put showDataTips = "true". And when the mouse is placed on the line, the data that the line appear as the datatip.

    Now, I want to display this data in some separate labels or text controls (that I placed in the application). Soomeone can give me a hint how I can do this? I.e. when I move the mouse over the line, the data appears in the label and it changes as the mouse is moved and the modification of the data.

    I'd appreciate any help from an expert. Thank you.

    "FlexyBoy" wrote in message
    News:gcnd6p$n1j$1@forums. Macromedia.com...
    > Hello,
    >
    > I have a chart drawn. I put showDataTips = "true". And when
    > the
    > the mouse is placed on the line, the data that the line appear as
    > the
    > datatip.
    >
    > Now, I want to show this data in some separate labels or text controls
    > (that i
    (> placed in the application). Can soomeone give me a tip how I can do
    > This?
    > IE when I move the mouse over the line, the data appears in the label
    > and it
    > change when the pointer is moved and the data is changed.
    >
    > I would appreciate any help from an expert. Thank you.

    This could point you in the right direction

    http://blog.flexmonkeypatches.com/2007/09/03/Flex-charting-LineSeries-mouse-sensitivity/

  • How to get data for submission of form using REST or SOAP API

    Hello

    Can someone let me know how to recover data using REST or SOAP API for example, also I need to know how to delete some data from form submission using REST or SOAP API for submission of form. Answer please I need to implement in one of my projects.

    Thanks and greetings

    Angela

    Post edited by: Md Shahid

    Here the answer How to recover data for submission of form using REST or SOAP API

  • 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

  • recent completion date of the year

    I have an Assembly date someone who is 20 October 2008.

    the person of this Assembly date now full years on 20-OCT-2009,20-OCT-2010,20-OCT-2011 till now.

    I want to select the maximum date of end of the year, which should be less then sysdate, and this date is October 20, 2011.

    What will be the command to select that date in 9i?

    Simply apply a max function for the result set:
    ------

    WITH t AS
            (    SELECT ADD_MONTHS (TO_DATE ('20-OCT-2008', 'DD-MON-YYYY'),
                                    ROWNUM * 12)
                           dt
                   FROM DUAL
             CONNECT BY ROWNUM <=
                           TO_CHAR (SYSDATE, 'YYYY')
                           - TO_CHAR (TO_DATE ('20-OCT-2008', 'DD-MON-YYYY'),
                                      'YYYY')
                           - 1)
    SELECT MAX (dt) dt
      FROM t;
    

    output:

    dt
    ----
    10/20/2011
    

    See you soon,.
    Manik

  • To find the last year data / data of the year an individual

    Hello

    How to find the data for the whole of last year, I tried like

    entered_date between to_char (December 31, 2008 11:59:59 ', ' HH12:MI:SS MM/DD/YYYY ')
    and to_char (1 January 2010 00:00:00 ',' DD/MM/YYYY HH12:MI:SS'), but it's an error invalid number.

    Thank you.

    Hello

    If you want something that doesn't require you to hardcode a year, but the numbers automatically in what year it is:

    WHERE   entered_date     >= ADD_MONTHS ( TRUNC (SYSDATE, 'YEAR')
                                              , -24
                                    )
    AND     entered_date     <  ADD_MONTHS ( TRUNC (SYSDATE, 'YEAR')
                                              , -12
                                    )
    

    There are a couple of things to notice on the expression that you posted (in addition to using TO_CHAR TO_DATE instead):

    WHERE  entered_date     BETWEEN TO_DATE ('12/31/2008 11:59:59', 'MM/DD/YYYY HH12:MI:SS')
                          AND       TO_DATE ('01/01/2010 00:00:00', 'MM/DD/YYYY HH12:MI:SS')
    

    BETWEEN includes two end points, so the phrase above covers just a little over a year. It includes a second of 2008 and a second in 2010, as well as the whole of 2009.

    Currently, 2010 is the last year, so the expression you have posted (as well as my suggestion) is actually for the year before last year, but it can easily be changed for the whole year.

  • How can I get data for the retrun OperationBinding object?

    Hi all
    I am new to the ADF and jdeveloper version 11.1.1.0.0 use. Now, I work in an application where my steps are,

    (1) service of Web created by stored procedure
    (2) control of data created by a web service
    (3) page .jspx created using data control

    In control data I have a method "addUpdMbrLevelDetails" that store a record in the database raise WebService and stored procedure and return id of the recording. Here is my code.

    public String commandButton1_action() {}

    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("addUpdMbrLevelDetails");
    Object result = operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ()) {}
    Returns a null value.
    }
    Returns a null value.
    }

    Here result return type is XMLHandler$ DataCollection

    My question is how can I object return data form.

    Please help me.

    Thanks in advance.

    Myriam

    @Rodrigs, you can't cast datacollection $ xmlhandler to FacesCntrlRangeBinding

    @User, you can convert the output to eaisly java.util.AbstractCollection
    you need to google a bit of how to work with AbstractCollection in java is to say hw to retrieve content, once you have completed your problem is resolved...

    Kind regards.

  • Is it possible to get data on the ownership of retail device driver indicated below, using scripts?

    I tried to get the data using Win32_PnPSignedDriver, but the InstallDate watch setting still empty when I try to get it back. In addition, the Win32_PnPSignedDriver object contains all of the values that could be seen when you access this window through the Device Manager.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Bean Java properties class that extends data control cannot get data on the user interface

    Hello

    I'm writing a bean something like the following and trying to create a control of data off of it:

    package model.beans;

    import java.util.Properties;

    SerializableAttribute public class PropBean extends properties {}

    String ID;
    The name of the string;
    public PropBean() {}
    Super();
    setName ("TURBO");
    setId("123");
    }

    public String getProperty (String key) {}
    If (key.equalsIgnoreCase ('name')) {}
    return getName();
    } else {}
    return getId();
    }
    }

    public String getProperty (String key, String Valeurdefaut) {}
    If (key.equalsIgnoreCase ('name')) {}
    return getName();
    } ElseIf (key.equals ("id")) {}
    return getId();
    }
    else {}
    return Valeurdefaut;
    }
    }


    public String getName() {}
    System.out.println ("GET =" + myIdName);
    Return myIdName;
    }

    public void setName (String name) {}
    myIdName = name;
    System.out.println ("VALUE =" + myIdName);
    }

    {} public void setId (String id)
    This.ID = id;
    System.out.println ("VALUE =" + this.id);
    }

    public String getId() {}
    System.out.println ("GET =" + this.id);
    return the id;
    }
    }

    When I binds the name and id attaributes text of output values do not appear on the screen.
    But if I do not extend class properties and then on the piece of code just works very well.

    The same thing happened when I extended HashMap.
    I had to override the method getObject (Object obj) to make it work.

    However I am still unable to run when the class extends a class of properties.

    See you soon,.
    REDA

    Hello

    When you extend HashMap then create you a hash table. Properties extend from HashTable, which seems to be similar. Tehre is a reason why your class should extend the properties instead of use the Properies class as a resource reference?

    Frank

Maybe you are looking for