What query can we use ...for over 30 days

select PROPERTY,RELAVANTDATE ,
sum(NOTICES) over (
partition by property
order by RELAVANTDATE
range between interval '30' day preceding and current row
) "SUM"
from Test_Data
what query can we use ...for over 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.Regards,
Dima

Similar Messages

  • Dead Hard Drive - What replacement can I use for iBook G4?

    I have a
    Machine Model: iBook G4
    CPU Type: PowerPC G4 (3.3)
    Number Of CPUs: 1
    CPU Speed: 933 MHz
    L2 Cache (per CPU): 256 KB
    Memory: 384 MB (Upgraded to 1Gig)
    Bus Speed: 133 MHz
    Mac OSX 10.3.9.
    The hard drive died. What type and manufacrure do I need. Is it a Serial, ATA or IDE? What sizes can I use 40G, 60G, 80G, or 100G?
    Thanks for your help.

    but if your ibook was made before 2003 the limit for hard drives is 128GB any mac made before 2003 has this limit.
    heres a take aprt manual
    http://www.sterpin.net/uk/ddibookg4uk.htm

  • What Extractor can be used for this purpose?

    Hi all
    I have a requirement for a new report. The user wants to get a report regarding inbound cost saving including materials, material group, MRP controller, vendor, date, qty, actual inbound transportation cost, standard transportation cost which is fixed in SAP and variance between actual and standard.
    Can any one advice me what Extractor and Extract Structure can be used for this purpose?
    Thanks in advance
    Ishi
    Edited by: eletter on Sep 28, 2009 11:11 AM

    Hi
    Extract structure
    The extract structure, data from a DataSource is staged in the source system. The extract structure contains the amount of fields that are offered by an extractor in the source system for the data loading process.
    Extractors
    Extractors is a data retrieval mechanisms in the SAP source system. Which can fill the extract structure of a data source with the data from the SAP source system datasets. The extractor may be able to supply data to more fields than exist in the extract structure.
    Hope this helps you
    santosh

  • HT1665 Left my charger at friends what else can I use for iphone?

    What can I use to charge my iphone besides the charger it came with. Left mine at friends

    Do you have the cable?  If so you can use any charger that has a USB port or plug it into a computer USB port.  If you have an iPad or iPod, you can charge it using those chargers.

  • Could anyone tell me please what compiler can i use for java?

    i want to begin programing in java and i dont know what compiler shoud i use.thank you

    The one that comes with the JDK.
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    Sun's basic Java tutorial
    http://javaalmanac.com . A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.

  • What methods can I use for transferring mac to mac?

    Hi,
    I'll be soon upgrading to a MBP, before I can do that I need to sell my MB. I will have a period of time without a MB of any kind so I need a way to keep my files safe to transfer when I get ahold of my MBP.
    I had some ideas like Dropbox for Photos, thumb drive for files, but can I use my ipad or ipod to store music that I didn't buy on itunes to then sync when I transfer? Will music files come off my ipad/ipod when I change or will they be deleted when I sync?
    Is there any other way to securly transfer data?
    Thanks for any help in advance!

    The best thing is to buy an external drive and make a backup of your data in Time Machine. See > http://support.apple.com/kb/HT1427
    During the initial setup of your new MacBook Pro, it will ask you to restore a backup, so plug your external drive and follow its steps. Your MacBook Pro will be the same as your old Mac after restoring the backup. Doing this, you will also void problems with your iPod, because all the things that weren't purchased in the iTunes Store will be removed if you sync the iPad and iPod with the new iTunes library.
    If you don't want to get an external drive, there are other things you can do. If you have non-purchased music in the iTunes Store and it's stored in the iPad or iPad, you can use an application like Senuti to transfer them to your new MacBook Pro. Respecting to your photos, you can use a cloud photo service like Picasa

  • [tools help] what tool can be used for moving file?and table row updating?

    I need some help to know which tool can help me in the following task:
    #1 Moving of file
    situation : After extraction of a file , the file is moved to another directory.
    #2 SQL updating
    Situation : which tool in mapping can be used to update existing record / perform sql
    such as UPDATE SET VALUE TABLE WHERE .... or DELETE...

    I need some help to know which tool can help me in the following task:
    #1 Moving of file
    situation : After extraction of a file , the file is moved to another directory.You can move the file using oracle UTL_FILE Package Seach the net with this Key word and create procedure/ function in oracle test it in Database .Once everything is perfect then call the procedure/function form OWB
    #2 SQL updating
    Situation : which tool in mapping can be used to update existing record / perform sql
    such as UPDATE SET VALUE TABLE WHERE .... or DELETE...Set the Load properties of the target table as Update or Delete

  • IPad1 cannot use iOS6, can it? If cannot, so what is the iPad1 use for next days?

    Dear Apple,
    What about the future of iPad1?

    It should still do everything it did when you bought it.
    Have you upgraded to the latest version of iOS 5?
    Your iPad 1 will not stop working just because it cannot
    be upgraded to iOS 6.

  • What browsers can I use for mac os x 10.5.8?

    Safari is updated but has not been working for the past few months and I have submitted it SO many times. I have it open for 30 seconds and it crashes EVERY time. I'm currently using a very old chrome version but I can watch any videos at all on it. Firefox, Opera, Seamonkey, Internet Explorer...every browser out there I have tried and for all of them I downloaded the "leopard" 10.5.8 versions but NONE work!

    its my experience... dealing with having 10.5 myself that i had to update OSX using downloads from here to get beyond a certain level i believe i am at the end of the 10.5 update extent...
    but after that.. i needed programs that were "older" in nature to work on the OS...
    i found a site that collects "Old Apps" for bot PC & MAC.. and they actually have slightly older versions of browsers that work and will update to a point and will still work....
    the site  ...   http://www.oldapps.com/
    i recommend Firefox myself as it is what i use... and it works really well... but you will need to make sure you also do any and all updates you can find here at the "App Store" for instance Quicktime up to 7.7 and then you also need to make sure you update flash player (on your own) to make sure it works properly... even tho you will get notices from some websites saying that "you need to update your browser"... which you dont... and kinda cant to a point... (trust me i know on this one...lol)... 
    the site for the flashplayers is ....  http://www.adobe.com/shockwave/download/alternates/
    dont try to use the most recent version it wont work on 10.5
    and after you are all done with that... it should work a little more smoothly and better...
    LASTLY... you should try at some point to find a copy of a 10.6 install disc and "upgrade" like i plan to soon....
    I HOPE this helped in some way....   leave me some feedback

  • For an IR2200 what driver can I use for Windows 7?

    With a used Dell workstation with Win 7, if I want to install the IR2200 as a networked printer, what driver set/software package should I use?  I have it set now and running with a driver for the Canon IC2300.  Features are missing.  So, am looking to get as much as I can from this very nice printer.
    Thanks for any advice.
    H

    Well, it's been more than three weeks now with 0 replies for assistance.  Guess my next move would have to be to try to call Canon by phone and see if they're willing to help sort this out.  Some forums are very responsive.  Here, not so much...
    H

  • What printers can I use for apple ipad

    I have a bother dcpl2540dw printer and I am unable to print from my ipad. It has wifi program built into it. Do I need a special printer?
    Where can I find a list of compatable printers?
    Thank you

    I found the
    Brother DCP-L2540DW
    in the list of supported printers.
    Do you have a router?  Can you get on the internet from from your ipad via wifi.
    Suggest you power off all your devices including router for three minutes.  See if that helps. Check for installation of printer. 
    The iPad uses a print technology called AirPrint. Airprint is a particular communication protocol that flows over WiFi.  So, having a WiiFi printer isn't sufficient. The printer needs to be of an Airprint variety of WiFi.
    List of supported AirPrinters.
        http://support.apple.com/kb/HT4356

  • I have just purchased a Panasonic SDR-H80 Hard disk Video camera. What software can I use for my iMac.

    I would like to know if anyone knows of Software that I can use on my iMac for the above.

    It records in mpeg2 format. Try using meg streamclip ( free) to convert the material to dv. You should be able to edit dv format with iMovie.
    x

  • What driver can i use for Auzentech forte 7.1

    - Hello together!
    My Question is, I have the Auzentech Forte 7. Soundcard, and the Orginal Driver for the Card, does not currectly install on my Pc, and the Support Pack 2.0 from Daniel does not work currectly. The Volpanel and the Console will not open. Can i also install SB-X-Fi Series AuzenWDM Pack .0, or is these driver only for Creative cards?
    P.S: Sorry for my bad english, but I hope your german is better!

    Well, it's been more than three weeks now with 0 replies for assistance.  Guess my next move would have to be to try to call Canon by phone and see if they're willing to help sort this out.  Some forums are very responsive.  Here, not so much...
    H

  • What software can I use on my new Mac that no longer supports "AppleWorks"? To easily transfer my database for mailmerge.

    What software can I use on my new Mac that no longer supports "AppleWorks"? To easily transfer my database for mailmerge.

    Two thoughts:
    (1)     It is possible that your Adobe software was the result of belonging to a now-discontinued Adobe Print Service Provider program where for a certain annual membership fee, print service providers were provided with (a) both a Windows and Macintosh license to the Adobe print-oriented software products (such as InDesign, Illustrator, Photoshop, and Acrobat) and (b) special direct product support as well as the ability to put your name on Adobe's website as a member of this program. The program ended over a year ago if I remember correctly.
    (2)     You may wish to contact Adobe Customer Support (not Technical Support) and see if they can track down any and all licenses associated with your company. If you have the names of the former employees who worked with this software, it would be helpful. Likewise, if you were a member of the discontinued Adobe Print Service Provider program, you may have some options for upgrading/updating the software you have.
    Unfortunately, you cannot get any more definitive information about your situation on these forums.
    Good luck.
              - Dov

  • What format i should use for my external hard drive that can be used interchangeably between mac and pc?

    What format i should use for my external hard drive that can be used interchangeably between mac and pc?

    Usually Fat32/MS-DOS as mentioned, but that has several limitatiuns, like 4GB filesize limit.
    One option is MacDrive for you PCs... allows them to Read/Write HFS+...
    http://www.mediafour.com/products/macdrive/
    More options...
    NTFS-3G Stable Read/Write Driver...
    http://www.ntfs-3g.org/
    MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
    http://www.osnews.com/story/16930

Maybe you are looking for

  • How to unlock the portal Contents

    Hi All, Please say me the Procedure to unlock the Portal Contents which are already locked by me Thanks in Advance

  • Mac MX 2004 modified file time wrong

    When I save a file in Dreamweaver MX 2004 (on an Intel Mac under OS X 10.4.10), it sets an incorrect "modified" date/time: the date/time of the file as viewed in the Finder, or on the website after PUTting the file, is 10 hours less that it should be

  • MacBook 5.1 Safari will not load

    I'm having trouble loading Safari on my MacBook 5. Before this morning I had no issues. Today when I attempt to pull up a Safari browser my entire computer locks up. If I have the Force Quit open I can cancel the browser. If not, I can't even select

  • Iphone not syncing back to Macbook Pro. How to go both directions?

    I can sync calendar items (and contacts) from my computer to my iphone, but not in the other direction. I want to be able to do this within itunes. I have noticed that the sync is happening within my mobile me account....but that's not how I manage t

  • Ebuy now

    I've tried to contact ebuynow regarding my blue yeti mic with NO respond at all.. Support ticket nothing as well as email nothing. So ebuynow have just scammed my money? HOW can skype use ebuynow.. also tried to contact ebuynow_pro