Store the value less than the current week and the year.

Hi all

I have a table called BACK, which structure is like this
ITEM_NUMBER   YEAR_WEEK   MS
...........   .........   ..
1N58          2012-WK02   01/15/2012
1N58          2011-WK02   01/15/2011
current my procedure I store the value in my new table that is less than the current week. But I want to retain the value less than the current week and the current year. Please, help me to get how I can do this.
PROCEDURE BACKLOG_PROC_LT_CW IS
  BEGIN
 DELETE BACKLOG_LT_CW;
 COMMIT;
      INSERT INTO BACKLOG_LT_CW
        SELECT 
              DC_UTIL.GEN_YEAR_WEEK(MS) YEAR_WEEK,
              ITEM_NUMBER,
              MSD

              FROM BACKLOG
          where to_char(MS, 'IW')<to_char(sysdate, 'IW');

  END BACKLOG_PROC_LT_CW;
Currently, with the above code is to store the value in my table of BACKLOG_LT_CW but if you see the data in the table from the BACK you will find YEAR_WEEk 2012-WK02 falls next year, but again it is store in my table because IW took only. Please help me get the soln

Thanks in advance

Concerning

Are you looking for this?

...
where to_char(MS, 'YYYYIW')

Tags: Database

Similar Questions

  • window will stop in less than a minute, stops and restarts everytime I use the computer

    message-windows will be stop in less than a minute. appears, and then the computer stops and restarts. It's windows vista and it's this evertime I use the computer

    Hello

    ·        This happens randomly, or when you open any application on the system?

    ·        Since when are you facing this problem?

    ·        Remember to make changes to the system?

    Check the event viewer for the newspapers and let us know. Follow the steps mentioned in the link below.

    Open event viewer

    http://Windows.Microsoft.com/en-us/Windows7/open-Event-Viewer

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    Method 1:

    Step 1:

    I suggest you to check in safemode, if the problem persists. Follow the steps mentioned below.

    a. restart the computer and keep tapping F8 until you reach the start menu.

    b. Select safe mode and press ENTER.

    Step 2:

    I suggest you do a clean boot and see if the problem still occurs.

    To perform a clean boot follow the steps mentioned in the link given below.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: Follow step 7 to start the computer in normal startup.

    Method 2:

    It may be there is a scheduled task on your system. Check in Task Scheduler and if there is no scheduled tasks then, remove and check if the problem persists.

    Automate tasks with Task Scheduler

    http://Windows.Microsoft.com/en-us/Windows-Vista/automate-tasks-with-Task-Scheduler-from-Windows-Vista-inside-out

    Schedule a task

    http://Windows.Microsoft.com/en-us/Windows-Vista/schedule-a-task

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • "Less than 40%", "between 40 and 70% ', 'more than 70%

    Experts from the ADF,

    In DVT as graphic funnel, is it possible to change the fork of graph based on the Customs provision.
    For example: graph funnel creates the funnel as "less than 40%", "between 40 and 70%", "greater than 70%. Is it possible to change this to any custom value?


    thnks
    11.1.1.5 Jdev

    Hello

    See 'Threshold' in

    http://download.Oracle.com/docs/CD/E21764_01/apirefs.1111/e12418/tagdoc/dvt_funnelGraph.html

    + 'The number of threshold, interval threshold, and color can be customized in the chart bean. These functions are not exposed to the faces layer yet, but the application can use a graphic link to access these features in the graphics engine. » +

    Frank

  • I bought an iphone 5 c less than 2 months ago, and even if I don't use a lot of storage, I still almost nothing GB, what it can be?

    I bought an iphone 5 c less than 2 months ago, and even if I don't use a lot of storage, I still almost nothing GB, what it can be?

    Apps, music, images, even the contacts you add etc - all of these things take a valuable storage capacity on your phone.

    Your backup device, delete it and then restore from the backup, maybe this will help free up space.

    Use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support.

  • How to get the value less than 0 = 0

    I'm trying to get a formula to do two operations of a field given something like:

    Form1. #subform [0].yes1.qn1::calculate - (JavaScript, client)

    (p1-s1)

    Then, if the value is less than '0' the value '0 = '.

    what I have so far does not work, any help is greatly appreciated.

    If

    (this.rawValue < 0)

    this.rawValue

    = 0;

    Thank you.

    I put the following code in the event the qn4 field Calculate... FormCalc language...

    If this isn't what you're trying to do, then please explain in detail...

    If ((p4-s4) == 0) then
    $.rawValue = 0;
    on the other
    $.rawValue = (p4 - s4);
    endif

    Thank you

    Srini

  • 15 - f010dx: Notebook is less than 2 months old and now won't turn on.

    I have a HP Pavilion 15-f010dx it's a little less than 2 months and is rarely used for light work. This morning I went to for use and the computer has been insensitive. I held the power button down and run to make sure that the computer was not "slow" mode. There is no display on the screen, "Wifi (airplane mode)" button was lit in orange colour and the 'Caps Lock' button was blinking. I assumed that the battery needs to death during the night, so I plugged the AC adapter and let it charge for two hours before trying to see if things would turn out. I tried on and I saw the same lights come on in the same way that I used the additional observation that I na could not pay attention the first time hear the computer will start and then stop Turing, this action repeated for quite some time, all while the lights stay on. I removed the battery from the computer and unplug the power cord I pressed the power button and held it for a minute or two, I plugged the cord back and the computer has been insensitive to this action. I have replace the battery and tried to turn it on again and I went through the same thing. The lights for the 'WiFi' would be on, key Caps Lock flashing and I hear the system starts for a few seconds and then off. I'm not sure what could cause this problem and I'd love to help, try to understand this.

    Ok.

    Time to use the warranty.

    If there is important data on the hard drive, it is highly recommended to use a hard disk enclosure or a SATA to usb connector. Once the hard drive in the enclosure or conmnevted to cable, you can connect the hard drive on another PC of Windows and copy data, so it does not get clean bythe customer Service

  • -1 current week and the last 9 weeks

    Hello

    I want to show the tax in the x-axis as weeks

    (current_week) - last 9 weeks only


    Thank you

    Published by: 806756 on February 6, 2013 22:21

    Hello

    try to combine these two:

    TIMESTAMPADD (SQL_TSI_WEEK,-4, (TIMESTAMPADD (SQL_TSI_WEEK-1, CURRENT_DATE)))

  • How to return the highest value in a column of numbers less than a given number

    I am a beginner using formulas in number.  I have an inventory in a Numbers spreadsheet (v3.6.2).  Inventory numbers are in a column.  I need to view the last number used or the highest number less than a given value.  In my case, it is 9000.

    I can put a cell to return MAX and it's cool, but I need to know the number < 9000, MAX.

    Hi JS.

    SEARCH is your friend here. One of the properties of the LOOKUP function is that it accepts a 'close-match', which is defined as the largest value less than or equal to the search value.

    Formulas:

    A2: LOOKUP (8999.9999999, D)

    B2: LOOKUP(9000,D)

    C2: MAX (D)

    Kind regards

    Barry

  • Refine a query to display only the entries for the current week

    Hello.

    Anyone know how to change a query to display only those records that have dates of the current week? Records have a start date and an end date, so the query should recognize that the entry may be valid for more than one week?

    Kind regards

    swelch

    Hi Steve,.

    I just created a dataset that contained the periods before, during and after the current week - on the assumption that if any day of a range (start/end) falls within the current week so it is included.

    In my example this is 'today', June 25, 2011, and a week is defined as Sun - Sat. So my week of 'course' is u 19 June 2011 / I June 25, 2011.

    A line any with a start date before or during my 'current' week and an end date that is after or during my "current" week, i.e. no matter what date in its range included in the 'in progress' week will appear.

    See you soon,.
    Rob

  • GetPixel less than 808080 value... Mystery!

    I have a strange problem... I am a loop on a bitmap, and getpixel never returns a value less than 808080 hexagonal, even if the value must be a pure black. Pure white returns FFFFFF, only values below 808080 problems. Has anyone seen this behavior?

    Wim

    You should use something like the following.

    var bmd:BitmapData = new BitmapData(mc.width,mc.height,true,0x00000000);

    mast: var matrix = mc.transform.concatenatedMatrix;

    mast. TX = 0;

    mast. Ty = 0;

    BMD. Draw (MC, Matt);

    stage.addEventListener (MouseEvent.CLICK, clickF);

    function clickF(e:MouseEvent):void {}

    trace (BMD.getPixel32(e.stageX-MC.x,e.stageY-MC.y). ToString (16));

    }

  • Bug: highlighted in Acrobat DC/Windows 10 with less than 100% opacity appears corrupted

    Text that I report the Acrobat DC with fixed to any value less than 100% opacity looks damaged and unreadable. Not sure if this is a bug of knowledge or something that should be brought to the attention of the devs.

    showing acrobat opacity issue.png

    For example, created in the help file when you open acrobat.

    Hi rvgraham,.

    This issue has already been reported as a bug. I'll let you know if there is any update on this issue.

    Kind regards

    Nicos

  • I bought the IPad Pro 128 GB on 3.29.2016. I used it for less than a week. It charged when I first opened it from 67% to 100%. 9.3.1 update.  After about 5-6 days, the battery is down to 1%, and now it will not load. I have reset on AEC

    I bought the IPad Pro 128 GB on 3.29.2016. I used it for less than a week. It charged when I first opened it from 67% to 100%. 9.3.1 update.  After about 5-6 days, the battery is down to 1%, and now it will not load. I have reset to factory settings and it still doesn't load. There's just 1%. Help, please.

    Thank you

    Katie

    It is under warranty. Suggests taking it for an Exchange.

  • I'm less than 2 weeks in my DW of the trial and I need to re - install the creative cloud Desktop App. It will start the download, then just disappears...

    I'm less than 2 weeks in my DW of the trial and I had to restore my computer (PC) due to a software conflict.  I went to re - install the creative cloud Desktop App and it will start downloading and then just disappears... I have no problem the first time around. I tried to restart my computer, turn off the firewall, etc. Did the same thing. Help, please. I would like to end my trial.

    Temporarily disable the firewall.

    Step 1:

    Open the c: drive and navigate to C:\Program Files (x 86)------\Adobe " common files".

    Open the Adobe folder and delete folders named Adobe Application Manager and OOBE.

    Step 2:

    Navigate to C:\Program Files (x 86) \Adobe.

    Open Adobe file and if present the file to remove Adobe Creative Cloud . [* important]

    Impossible to remove? Rename it to Adobe Creative Cloud centenarians.

    Step 3:

    Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.

    Type below command and press the enter"" key.

    AppData

    Then go to the Local > Adobe.

    Open the Adobe folder and delete folders named AAMUpdater and OOBE.

    Step 4:

    Make sure that Adobe Creative Cloud is not listed in the control panel > programs and features. list. If you use the Adobe Cleaner CC Uninstaller tool.

    If not in the list, then download and install the Adobe Creative Cloud application and check.

    https://ccmdls.adobe.com/AdobeProducts/KCCC/1/Win32/CreativeCloudSet-up.exe

  • I use Lightroom 4.4 on windows 8. Less than 500 photos on the catalog and the catalog size is currently at 2.16 GB. Lightroom works fine, but I'm taking a risk by leaving the catalog to grow beyond 2 GB?

    I use Lightroom 4.4 on windows 8. If I have less than 500 photos on the catalog, I do a lot of alterations and cleaning of the images and therefore the size of the catalogue is currently at 2.16 GB. Lightroom works fine, but I'm taking a risk by leaving the catalog to grow beyond 2 GB? Should I close it and start a new catalog? Thanks for your suggestions.

    Many local adjustments (brush strokes, spot healing) can have a huge impact on the overall size of the catalog because they are all saved as stages of the individual history and so I wouldn't worry - there is nothing wrong with your catalog. See my thread here since a few years back: which affects the size of the Lightroom catalog file? where Rob Cole usefully thought of it for me.

    You could delete the history if you wanted and that I'd be willing to bet that the size would be reduced considerably. That said, my catalog file is larger than 10 GB (as I do a lot of local changes as stated in the thread I linked to) and it causes no problem at all, apart from resulting in a backup of slow catalogue (my previews resume another 30 GB or more). I have not yet felt the need for the history of the Reformation, but doing so probably would increase my catalog to about 1 GB, so it's an option if size becomes a problem for me.

    My advice: continue anyway and don't worry in this regard.

    M

  • How to create a validation script that sets my value to a minimum of 1 (even if the calculation of the value is less than 1)?

    I use a notation simplified field to calculate the value

    (kg1 * 1.5) - diaporama1

    I want my value to only a minimum of 1 at any time, even if the actual value itself is less than 1

    Thank you!

    Add this code in the custom validation script:

    If (event.value<1) event.value="">

Maybe you are looking for

  • Satellite A200-1AH will turn off by itself

    My computer closes itself sometimes without any reason! (and then when I try to open it a few seconds later it closes!)Can someone help me what is the problem? =( Thank you...

  • Backup of my system... help!

    When trying to install Windows XP SP3 I had to cancel because I got a message "my system to backup first. How do I do that? What is a backup on a CD or something done internally? I never did and as you can tell, I'm not on that same verse. It is also

  • BlackBerry Smartphones trying to install Desktop Manager, could use some help.

    I am trying to install on a PC running windows XP. a complete uninstall by KB02206. The installer gets to that point: Installation of Microsoft .NET framework 3.5 sp1 (for download). That brings up the following dialog box: Please wait while setupup

  • CS3 key

    Hi all, Im really frustrated that I can't find and answer. I have CS3 on my old laptop, I had CS5 on my desk (which I didn't) I upgraded to CS6 on my desktop through my school.I now have a new computer.  My my key for CS6 off school, I didn't know th

  • How do to install XP SP-2 on vista (help me plssssssssss)

    My laptop is - Pavillion DV4 1216tu help me pls... When I install XP SP2 on vista, the instalization I get error on blue screen, which version of XP is supported in Pavillion DV4 series 1216tu