wants to get the dates of the week

Hi guys,.

I want the weeks when I give the nth week number.
Eg: 

SQL>  select to_date(to_char(sysdate,'iw'),'DD'),to_date(to_char(sysdate,'iw')+6,'DD')from dual
  2  where to_char(sysdate,'iw') =21
  3  ;

TO_DATE(T TO_DATE(T
--------- ---------
21-MAY-12 27-MAY-12
But when I give it 1 or 2 inplace 21st I do not get the results.
OK I can without restricting my sysdate...?

Thans

Published by: san on May 24, 2012 17:04

Select trunc (sysdate, 'yyyy') + (& week * 7)-6, trunc (sysdate, 'yyyy') + (& week * 7) double

Tags: Database

Similar Questions

  • I want to get the current music, I have on my iPod out of it and start again. How can I do this?

    I want to get the current music, I have on my iPod out of it and start again. How can I do this?

    Open iTunes, plug in the iPod, select what you want to be on your iPod, sync.

  • [Labview] I want to get the average value in each new 100 samples.

    Hello. I'm Sophie.

    I'm studying Labview for my research.

    For me, the sampling frequency is 125KHz.

    I want to get the average value in each new 100 samples.

    Therefore, I want to get an average value of 1 ~ 100th samples and store this average value. Call assets(1).

    Then, I want to get an average of 101 ~ 200th samples and store this means value, call moyen2.

    .

    .

    .

    .

    I don't know how me I want.

    Thank you

    Sophie.

  • I really want to get the IMAQ Image IMAQ Arry case to Image.vi files

    Hello!

    Although already, I installed LabVIEW8.2 and NOR-IMAQ, I don't have IMAQ Image cases and IMAQ Arry Image.vi files.

    To use the infrared camera, I need them.

    I really want to get the case Image IMAQ Arry Image.vi files IMAQ.

    How can I get these files?

    Please, let me know the methods.

    Sincerely!

    Thank you very much for your explanation.

    Solve the problem.

    Have a nice day ^ ^

  • I want to get the update on cd

    I want to get the update on cd

    You may be able to order service packs on CD, but nothing else.

    Service Packs Office-
    http://Office.Microsoft.com/en-us/downloads/FX010383631033.aspx

    Vista: http://www.microsoft.com/windows/windows-vista/quick-start/service-packs.aspx
    See: https://om.one.microsoft.com/opa/Validation.aspx?StoreID=57d2f336-6a91-4936-a0ac-bf64ae6547c9&LocaleCode=en-us&JavaScriptOn=yes

    Order Windows XP Service Pack 3 on a command of CD for Windows XP SP3 on a CD, visit one of the following Microsoft Web sites, depending on your region:

    Asia

    https://OM2.one.Microsoft.com/OPA/start.OM?StoreID=D7A098F4-4034-4CCB-A785-9E890E6B4F5B&LocaleCode=en-us&NewTrans=1 (https://om2.one.microsoft.com/opa/start.om?StoreID=D7A098F4-4034-4CCB-A785-9E890E6B4F5B&LocaleCode=en-us&NewTrans=1)

    Europe and Africa

    https://OM2.one.Microsoft.com/OPA/start.OM?StoreID=7B7AA929-BD0A-487A-BC7E-DF7631FEE660&LocaleCode=en-us&NewTrans=1 (https://om2.one.microsoft.com/opa/start.om?StoreID=7B7AA929-BD0A-487A-BC7E-DF7631FEE660&LocaleCode=en-us&NewTrans=1)

    North America

    https://OM2.one.Microsoft.com/OPA/start.OM?StoreID=CE6E3AFC-6B25-4F99-8913-3E3453AD966D&LocaleCode=en-us&NewTrans=1 (https://om2.one.microsoft.com/opa/start.om?StoreID=CE6E3AFC-6B25-4F99-8913-3E3453AD966D&LocaleCode=en-us&NewTrans=1)

    South America

    https://OM2.one.Microsoft.com/OPA/start.OM?StoreID=2CE39C54-6B20-417F-B9C0-9F513FA18153&LocaleCode=en-us&NewTrans=1 (https://om2.one.microsoft.com/opa/start.om?StoreID=2CE39C54-6B20-417F-B9C0-9F513FA18153&LocaleCode=en-us&NewTrans=1)

    You can search the rest as you have not yet advised what operating system you have etc.

    TaurArian [MVP] 2005-2010 - Update Services

  • I just want to get the load down, so I can move to windows 7 Pro that I just paid for. I can't believe that it should be this difficult.

    I have a key for download. I just want to get the load down, so I can move to windows 7 Basic windows Pro 7 I just paid for. I can't believe that it should be this difficult.

    Why couldn't there was a link on the confirmation e-mail to download the program.

    You can use the product key and the Basic Express in Windows 7 Home Edition upgrade upgrade to Windows 7 Professional.

    If the license for Windows 7 Professional, you have access to is a retail version update or complete, you can use the product key and the Express upgrade from Windows 7 Home Basic to Windows 7 Professional. First of all, check that the edition of Windows 7, you are upgrading is already enabled (if it isn't, you will encounter complications and that you might start all by performing a clean installation). Click Start, type Anytime Upgrade, click on the option enter a key, enter the key of Windows 7 Professional on demand, click Next, wait while checking the key, accept the license agreement, click on upgrade, wait while the software upgrades, (it may take 10 minutes or more depending on the if updates are required) your computer restarts automatically, after the reboot, Windows 7 will notify you updating the computer, the computer will restart once more automatically and will be completed the upgrade, a window will appear notifying the upgrade was successful and your computer is ready to use, click Close, you should be upgraded to Windows 7 Professional your files, programs and settings retained.

  • I want to get the icon facebook for magical canvas of Hp?

    I want to get the icon facebook for magical canvas of Hp?

    Please contact the Facebook Support for help with this issue:

    http://www.Facebook.com/help/?page=220217228006012

    http://www.Facebook.com/help/

    http://www.thefacebookforum.com/

  • Copy of the device. I want to get the pistures of him out of it to share with friends... and fam is there a way I can do this?

    I got a slideshow of my preschool son and I want to get the pistures of him out of it to share with friends... and fam is there a way I can do this?

    You can use copy and paste.  Help Windows 7 & support:

    Copy and paste a file

    When you copy and paste a file, you make a copy of the original file that you can then modify independently of the original file. If you copy and paste a file to a different location on your computer, it's a good idea to give it a different name, so that you'll remember which file is new and which file is the original.

    To copy and paste a file:

    1. Open the location that contains the file you want to copy.

    2. Right click on the file and then click on copy.

    3. Open the location where you want to store the copy.

    4. Right-click on an empty space within the location and then click on paste. The copy of the original file is now stored in the new location.

    For more information about copying multiple files, see select multiple files or folders.

    Tips

    • Another way to copy and paste files is to use the keyboard shortcuts Ctrl + C (copy) and Ctrl + V (paste).

    • You can also press on and hold the right mouse button and drag the file to the new location. When you release the mouse button, click on copy here.

    • You can copy and paste a folder in the same way as you would a file. When you do this, all the files in the folder are also copied.

    -

    Good luck.

  • How can I update my version of Adobe Captivate, I have version 8 and I want to get the version 9

    How can I update my version of Adobe Captivate, I have version 8 and I want to get the version 9

    Go to the sales and purchase the new version

  • When I save an illustrator SVG format file, I want to get the SVG code but open Illustrator Adobe Flash Builder, I just want to open a browser, NO FLASH BUILDER, how do I do that?

    When I save an illustrator SVG format file, I want to get the SVG code but open Illustrator Adobe Flash Builder, I just want to open a browser, NO FLASH BUILDER, how do I do that?

    You say 'illustrator opens Flash Builder'. So what is she doing?

    * When you save

    * When you try to open it from the inside of Illustrator (open in the file Menu)

    * When you try to open it with double click

    * Something else?

  • Hi, well, I want to get the creative cloud cuz I need for my career as urgent, but I will change my phone soon, so my question is... can I install in my pc, and then move them to another without paying again or something?

    Hi, well, I want to get the creative cloud cuz I need for my career as urgent, but I will change my phone soon, so my question is... can I install in my pc, and then move them to another without paying again or something?

    Yes.

    You can install an unlimited number of computers.  You can connect to up to two computers at any time (and you must be connected to use your cc programs).

    It's quick and easy to sign in and out, so there is no downside on the use of the cc on different computers.  legally, only the licensee is authorized to use the subscription of the cc if you can't share your programs with another person, but this is the only restriction.

    you have just installed you are the application of cc desktop on any computer you use, Download Adobe Creative Cloud apps | CC free trial Adobe

    Connect, connect and disconnect activate Cloud Creative applications

    Use the desktop application to install your programs of cc.

  • I have cs4 master and I want to get the creative cloud which according to it, you can get lower prices if you have cs3 or higher, but he says that I can not why?

    I have cs4 master and I want to get the creative cloud which according to it, you can get lower prices if you have cs3 or higher, but he says that I can not why?

    Hi Quinn7,

    Was that you upgrading from an educational version? If so, that could be related. I would recommend reaching out to our support for assistance. I think that there is a link to the chat or by phone at the bottom of the page of the plans: plans pricing and membership creative cloud | Adobe Creative Cloud

    -Dave

  • I want to get the multiple tilesetters name.

    I want to get the multiple tilesetters name.

    The command "activeDocument.activeLayer" returns only a layer name. Even if several layers have been selected.

    I can solve the problem?

    Please try this example...

    #target Photoshop
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    var selectedLayers = getSelectedLayersIdx();
    var selectedLayersNames =[];
    for(var a in selectedLayers){
        selectedLayersNames.push(getLayerNameByIndex( Number(selectedLayers[a]) ));
        }
    alert("Number of Layers selected = " + selectedLayers.length + "\rLayer Names = " + selectedLayersNames.toString());
    }
    
    function getLayerNameByIndex( idx ) {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Nm  " ));
        ref.putIndex( charIDToTypeID( "Lyr " ), idx );
        return executeActionGet(ref).getString(charIDToTypeID( "Nm  " ));;
    };
    function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
             desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i		   
  • How to get the week sequence?

    Hi friends,

    Greetings of the day!

    I am greatly in dealing with the next thing.

    I have two tables. a table with all the required information and another table called process_dtl, have the details of refreshment. These tables gets updated once a week. when its gets refreshed have will update the process_dtl table start date and refreshes the end date. There are also a few unique seq_no for each update. I will combine these 2 tables with seq_no process, because it is the unique key in the two tables. About these tables are more 2-year data. But what I want, I want only 6 months given. With 6 months data, based on the start_date I want to have the data week sequence. Means I want to know if it is given 1 week or 2 weeks, etc because the data get updated once a week. Is it possible to distinguish like this using start date. Please reply back if you understand the above.
    I'm using oracle 11g.


    Thank you

    Published by: 981145 on May 8, 2013 04:56

    You can get the data from the last 6 months simply by using the WHERE clause to limit the process_start_dt or process_end_date, as mentioned by Chris above. Since the sequence of steps. is unique for each race, I assume that the data you get from dtap_rpt_site_dtl_hst for that sequence number. needs no other filter criteria, so it must be good there.

    For the format of the week like you wanted, use the following in your select clause-

    to_char(process_start_dt, 'Mon') ||' ' || to_char(process_start_dt, 'D') week_seq
    

    Hope this has helped.
    Thank you!

  • Get the week number

    How can I get the number of week a week of prasent using simpleDateFormat class?

    With regard to:

    Jitendra.Balla

    GetWeekOfYear DateTimeUtilities (calendar, long date, int firstDayofWeek)

Maybe you are looking for