What query can we use... .for more than 30 days

Select the PROPERTY, RELAVANTDATE,
Sum (records) more)
partition of property
order of RELAVANTDATE
between the '30' day interval preceding and the current line
) "SUM".
of Test_Data

What query can we use... .for more than 30 days
can I use following or preceding
SCOTT@soti_9> WITH Test_Data AS (
  2    select 10100 as property, to_date('25-JAN-07') as RelavantDate, 20 as notices from dual union all
  3    select 10100 as property, to_date('25-DEC-07') as RelavantDate, 5 as notices from dual union all
  4    select 10100 as property, to_date('02-JAN-08') as RelavantDate, 10 as notices from dual union all
  5    select 10100 as property, to_date('01-DEC-08') as RelavantDate, 10 as notices from dual union all
  6    select 10100 as property, to_date('02-DEC-08') as RelavantDate, 20 as notices from dual union all
  7    select 10100 as property, to_date('31-DEC-08') as RelavantDate, 20 as notices from dual union all
  8    select 10100 as property, to_date('03-JAN-09') as RelavantDate, 30 as notices from dual union all
  9    select 10100 as property, to_date('25-JAN-09') as RelavantDate, 20 as notices from dual
 10  )
 11  select PROPERTY,RELAVANTDATE ,
 12    sum(NOTICES) over (
 13      partition by property
 14      order by RELAVANTDATE
 15      range between current row and interval '30' day following
 16    ) "SUM"
 17  from Test_Data
 18  ;

  PROPERTY RELAVANTD        SUM
---------- --------- ----------
     10100 25-jan-07         20
     10100 25-dec-07         15
     10100 02-jan-08         10
     10100 01-dec-08         50
     10100 02-dec-08         40
     10100 31-dec-08         70
     10100 03-jan-09         50
     10100 25-jan-09         20

8 rows selected.

Kind regards
Dima

Tags: Database

Similar Questions

  • What happens if I don't have internet connection for more than 30 days, with a monthly Photoshop CC license?

    I know, I have to connect to the internet to validate my monthly subscription to Photoshop CC. What happens if I can not connect to the internet for more than 30 days? It will be expired immediately, or changes in the first instance, or there is a period of grace for this?

    you will not be able to open ps after 30 days.

    (on the other hand, if it is already open on the 30th day and you leave it open, it must continue to operate unless you shut up.)

  • Phone has been "redevelopment" iCloud drive for more than a day now

    In parameters, iCloud Drive was churning "valorisation" for more than a day now. Did not help restart the phone. iPhone 6 s, iOS 10.0.2.

    Thank you!

    What kind of "reboot", you have?  What was this - restart your iPhone, iPad or iPod touch - Apple Support?  If you did, and it did not work, try switching iCloud drive, power switch (settings > iCloud > iCloud drive).  If this does not work, try to connect to your iCloud account and reconnect.

  • Script to find the virtual computer off for more than 7 days

    Guys,

    I need a bit help I'm looking for a script that finds all the VMs who have been turned off for more than 7 days.  I would like also the names of those VM and how many days they have been turned off for a worksheet excel output.

    Thanks in advance.

    Sorry, my mistake.

    The correct script is now attached to the previous response

  • Windows 7 asks Me to format the Seagate FreeAgent external hard drive I've used for more than a month

    I used Seagate FreeAgent as my external hard drive for more than a month now, but recently I am unable to access Windows 7 asks me to format it to use it. Somehow I can format the HDD without losing my data?  Or does perform a work around?

    Hi NuVille,

    Before perform us any of the steps, first of all I suggest you to create a backup of the data stored in your external hard drive on another computer.

    To save the data, you can connect your external hard drive on another computer and copy all the files and folders on the other computer. Later, you can connect the external drive to the Windows 7 computer and try to run the disk error checking and check if that helps you solve the problem.

    Access the link below and follow the steps to check the drive for errors and fix it.
    http://Windows.Microsoft.com/en-us/Windows7/check-a-drive-for-errors

    After completing the disc you error checking, try to check if you can access the drive.

    If the steps above do not I suggest you try to format the hard drive. Access the link below and follow the steps to format the hard drive.
    http://Windows.Microsoft.com/en-us/Windows7/create-and-format-a-hard-disk-partition

    Note: there is no way to format without losing any data on the disk. Formatting the drive will erase all data.  This is why you must back up the data before formatting the hard drive.

    I hope this helps. Let us know the results.

    Thank you and best regards,

    Srinivas R Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I try to activate my new 6s phone my old phone 4S. Almost everything seems to be transferred, but the wheel can now turn for more than 24 hours. Should I unplug and hope for the best?

    I've used icloud to transfer old 4 sec to 6 sec new phone but then tried to use the itunes backup. It has been run for more than 24 hours and seems to be stuck. Should I unplug the computer and stop the process?

    a bit of luck with your 6s still?

  • Virtual machines off for more than 14 days

    I so need of report of all virtual machines off the power more than 14 days and that turns off the virtual computer.  I can get the power out of VMs.  I can get that them turned off.  But when I enter the list of the powered of VMs and who fed the, I'm missing the name of the virtual machine.  I guess I'm missing something simple

    Get - vm | where {$_.powerstate - eq "PoweredOff"} | Get-VIEvent | where {$_.fullFormatted Message - like "task: turning off *"} | Select Createduserid, username, fullFotmattedMessage | where {$_.createdtime - lt (get-date).adddays(-14)}

    Try like this

    get-vm | where {$_.powerstate -eq "PoweredOff"} |Get-VIEvent | where {  $_.fullFormatted Message -like "Task: Power off*" } | select  createdTime, userName, fullFotmattedMessage,@{N="VM";E={$_.Vm.Name}} | where {$_.createdtime -lt  (get-date).adddays(-14)}
    
  • notifications of delivery doesn't have an account who have not used for more than one year

    Help

    Recently I received a now defunct work e-mail delivery failure notifications, which did not use more than a year, what can I do to stop these notification of delivery failure. This is back with all of my incoming emails. no rule of message didn't put in place for this address, and as it's my former work e-mail address, how to stop what is happening? sxlireland.

    Hi sxlireland,

    ·         E-mail are what customer you referring?

    ·         This message occurs with all email addresses or specific email address?

    If you use windows live mail or hotmail, you can reference in the windows live forum.

    Windows Live Forum - http://windowslivehelp.com/

  • What memory can I use for Satellite L20-100?

    Dear Sirs,
    Please, help me to understand what type of bars of memory is compatible with satellite L20-100?

    on your site I found the description only for L20 - 101 -.
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/JSP/productPage.do?service=EU&PRODUCT_ID=107212
    -
    and it is this:

    Standard system memory: 512 MB
    maximum scalability: 2 048 MB
    technology: DDR2 RAM
    expansion module sizes: 128, 256, 512, 1 024 MB

    but on different sites, I found this module maximum expansion size = 512 MB

    and in the instruction manual (pdf-Russian) they say that the module is DDR instead of DDR2!

    which one should I buy?

    This is a appropriate:
    Kingston DDR2 512 MB PC-4200 (533 MHz) SO-DIMM KVR533D2S4/512
    200 pine?

    I can even use but 1024 MB?

    Hello

    Well, I think that it should be possible to upgrade the memory to 2 GB (2x1024Mo)
    I also found a site of memory module very useful:
    http://www.orcalogic.co.UK/ASP/ProdType.asp?ProdType=20683&ft=m&St=3

    and according to this site, it should be able to use the 200-pin-DDR2-533 modules SODIMM

  • I just talked to xbox live and said me to communicate with you as you take money off mky account and I havnt used for more than a year now, I'd like a refund

    Hi I was wondering if some body would contact me on my account that I havnt used more than a year, I would like a refund on that because I'm not happy at all, you get 15 pounds a month and I really carnt afford this, if someone could give me a ring on (deleted) I would be grateful thank you

    Hi laurabramley,

    For any questions about Xbox Live, please see the following link for Xbox support:

    http://support.Xbox.com/en-us/

    Thanks for posting your question in the Microsoft answers Forum

  • After reinstallation, can't play for more than 30 minutes.

    original title: fsx and activision
    I have 2 years using fsx.

    Recently, I reinstall fsx and when I install it it asks activision key and I can't fly for 30 min.
    What should do?
    Kind regards
    Guy

    Hello
    I suggest posting this question in the FSX forum:
    http://www.Microsoft.com/products/games/FSInsider/tips/pages/default.aspx
    B Eddie

  • Photosmart HP 5510: Error with the same type of print cartridge black that I use for more than a year

    Hello

    For the last days I'm not able to print anything from my Photosmart 5510, because I get the error message "" Black - cartridge incompatible generation more "or 'cartridge for printers of older generation'." In addition, it does not give me option as before proceeding, in any case and I can't activate wireless. So, actually I have no printer at all. I reinstalled the driver but the same thing, after I did that and restarted a printer.

    I've been ordering cartridges on eBay and Amazon for a few years now. They were not HP and printer always said to me that it is not genuine HP cartridge. I have no problem with notifications, as it prints well. I printed several pages of document .pdf only 4-5 days.  No problem at all. My ink level is very good, especially black, because I was always ordering the largest capacity I print a lot.

    This problem started today (or I had knowledge about this today) and there is no doubt that something has changed between the time where I printed the last time and now. But it's pretty clear that HP wants me to buy original cartridges. Is it not enough that my laptop is HP, my printer is HP... I should have freedom to choose what ink to buy and where to buy it. It worked a few days ago and I checked the black cartridge, that I get the error message, has at least 50% of ink left in it. Because HP wants me to throw it away, because it's not authentic?

    I'm really upset, because it is not a software, where we have to use the original permits. It's MY printer and I get to choose what cartridges I put in it, and where I buy my cartridges. If there answer like "it is not comapitble, etc.", well, it worked for a long time and printer tell me that there is problem with it. The problem with the cartridge just 'old generation '.

    If HP conitinues to press like that, I'll never buy anything HP again.

    Hello again Senahid77,

    I brought your question to the attention of a team within HP. They are likely to ask for information from you to get your information or product serial number. Please search for a private message from a contact HP identified. Also, remember not to publicly post information and series numbers.

    If you are unfamiliar with the operation of the function of private messages of the Forum, this post has instructions.

    Thanks again for your time.

    See you soon,.

  • What should I do if I have an Internet connection for more than seven days?

    My CC monthly subscription renews every month 7.  From my experience, it seems that my applications are verified / check with Adobe 8.  However, next month, I'm going on a trek on the 7th and will be without internet for 10 days.  As CC apps to stop working after 7 days of not being able to access your room, that's a problem.  Is there something I can do to make sure that my LR 5 install will continue to work for the duration?

    According to Adobe...

    http://www.Adobe.com/products/creativecloud/FAQ.html

    Do I need a continuous Internet access to use my apps desktop creative cloud?

    Lol your desktop creative cloud (like Photoshop and Illustrator) applications are installed directly on your computer, so you won't need a continuous Internet connection to use on a daily basis.

    An Internet connection is required the first time you install and your applications of office of license, but you can use applications offline with a valid license. Desktop applications will try to validate your software licenses every 30 days.

    For annual members, you can use the applications up to 99 days in offline mode. For month members can use the software for 30 days offline.

    Looks like you'd be ok, but I understand what you're saying, I hope a member of the staff will confirm.

  • a Z depth pass can be used for more information true Z in AE?

    Well, the subject he said essentially, but I will explain this issue in detail as clearly as possible.

    The question is simply this... After Effects using a Z depth pass a scene in 3-d in the composite order may in front of the other objects correctly EVEN IF THEY are on a SEPARATE LAYERS!

    You might ask: "why should you?  Why not just go in a single pass? "Well, here's the reason.

    The product is made of a complex scene of AE with a crazy mess of elements 3-d, 2-d elements and particle systems.  And the changes must be made quickly for the customer...  For example, if the customer looks at work and she likes it except for one thing...  They want the leaves to blow around faster in the scene... Well, here's the problem with that...  Changing the speed of these holidays is going to be difficult because they have ON A SIGNLE LAYER... and blowing in front of and behind the elements on other layers.  I can't count on the time to match perfectly to each of these elements, unless I have a new rendering each 3-d element that is on its own layer all over again with the change edited... A head of what's wrong...

    Which brings me to my question.  Can I take a Z depth pass and use it as information true Z somehow inside legacy?  Because then I can't re - restores anything! I could just stay inside After Effects and accelerate this layer with leaves! The Z depth pass could tell after effects how each leave is away from the camera... And how all other objects comes from the camera...   So after effects will know "Hey I need to leave behind this object and that the leave in front of this object."

    It would be much better then recede in my 3-d application and re - animate the leaves and then re - make of them and all other objects.

    Well, that's my question.  I certainly hope after effects has this ability.  It would certainly facilitate things for me faaarr.  And thanks in advance for answers!

    Deep matte effect or by using depth pass as luma cache where the 'demarcation plan' is controlled by a levels on the matte effect.

    Mylenium

  • Code signing keys can be used on more than a developer (different PC)?

    Hello

    I applied for a set of code a long time ago signing keys.

    I installed them on the JDE on my computer... and I was able to migrate them to my new computer always on the JDE, then on the eJDE thereafter.  I had a few problems of migration of these keys, but everything is working well now, I am able to sign my application.

    Now, I have a colleague who wants to develop an application using Widgets and there need code signing keys as well.  Can I just send my key itself?  Or he must apply to his own set of keys?

    In other words, the code signing keys used to identify a company or developer?

    Thank you!

    Each developer must have their own set of BlackBerry Code signing keys.  Sharing the key is against the license agreement.

Maybe you are looking for

  • Satellite L300 needs 3 minutes to start the Vista

    My brand new L300 now takes 3 minutes at the start of pressure on desktop screen. I thought it would be much faster. Is - this standard?

  • Printer cannot print black, even with new ink

    Original title: cannot print in black I cannot print black on my printer.  I changed printers, ink cartridges and tried printing in different programs such as Word, wordpad and Excel.  Other black print colors just not.  Can someone tell me what is t

  • Device - Iphone 4

    my camera cound not connect using bluetooth. There is a need to install driver. Please tell us how update/install. other bluetooth device factory is ok. Thank you.

  • E380 support OTG?

    I plugged my E380 and OTG cable and can not find a USB drive. Did anyone try? Thank you

  • monitor image has a rotation of 90 degrees

    Hi, please help, my monitor image is 90 degrees to the left and I can't get it back again?