How to break this by month

Hi,
please help me out from this problem.
I need to generate a query group by day for every month i have to show the total.
item_name sum(amt),start_date Total Amount
x 10000 01/01/2005
x 10005 01/02/2005
x 12348 01/31/2005 5999344(some of those 31 days amt appx).
x 23444 02/01/2005
x 12232 02/28/2005 3434344(appx)
like this i have to show for every month. Here I'm giving actual query.
SELECT c . sttl_item_nme ,
sum(a . sttl_amt)amt,a.start_dt_gmt
FROM nm_settlement a ,
nm_sttl_item_dtl b ,
nm_sttl_item_dtl_type c,
nm_sttl_component sc,
nm_xp xp
WHERE a . sttl_id = b . sttl_id
AND b . sttl_item_num = c . sttl_item_num
AND xP.xp_id = sc.xp_id
AND a.sttl_id = sc.sttl_id
AND a . ptcpt_cd = 'DEMO'
and xp. XP_NME ='DECO.BLRVR1'
AND a . start_dt_gmt > '04/01/2005'
AND A . end_dt_gmt < '04/30/2005'
AND c . sttl_item_nme = 'RT Uninstructed Deviation Amount'
group by a.start_dt_gmt,c.sttl_item_nme
order by a.start_dt_gmt
Thanks & Regards,
Ramana.

Hi Ramana,
I give you this example, please change this according to your code.
HTH
Ghulam
select ename, hiredate, sal, sum(sal) over (partition by to_char(hiredate, 'MM-YY') order by hiredate) monthly_total
  from emp
order by hiredate;
ENAME      HIREDATE          SAL MONTHLY_TOTAL
SMITH      17-12-1980        800           800
ALLEN      20-02-1981       1600          1600
WARD       22-02-1981       1250          2850
JONES      02-04-1981       2975          2975
BLAKE      01-05-1981       2850          2850
CLARK      09-06-1981       2450          2450
TURNER     08-09-1981       1500          1500
MARTIN     28-09-1981       1250          2750
KING       17-11-1981       5000          5000
JAMES      03-12-1981        950          3950
FORD       03-12-1981       3000          3950
MILLER     23-01-1982       1300          1300
SCOTT      09-12-1982       3000          3000
ADAMS      12-01-1983       1100          1100
14 rows selected.

Similar Messages

  • Can any one tell me how to break this into separate columns 05/13/2014,"46","48","37","70","74","1","2","121000000.0000"

    Can any one tell me how to break this into separate columns 05/13/2014,"46","48","37","70","74","1","2","121000000.0000"

    Paste your content into TextEdit. Format > Make Plain Text.
    Comand-S to save.
    Command-Click the filename at the top of the TextEdit window. Click on the second line, the name of the folder where you saved the document.
    Select the extension of the document Name in the finder window that is being displayed and replace TXT with CSV.
    Right-Click the csv file and choose Open With > Numbers.
    Numbers will open with a column for each field in your data.
    Jerry

  • How to Break this String and put into a Table

    Hi all,
    Currently i working on the Reading of Csv file.THe Csv file wil be stored as BLOB in one table.
    The Format of the Csv file is
    EMPCODE :DATEOFBIRTH
    312089 ,12/01/1984
    321456 ,03/05/1980
    120212 ,04/08/1987
    312456 ,23/12/1977
    311110 ,12/04/1998
    323232 ,20/06/1990
    UPLOAD_BLOB
    column     Datatype
    UploadId Number
    File_details BLOB
    And i reading the BLOB in one procedure and i m getting the String as like this ---->
    "312089 ,12/01/1984
    321456 ,03/05/1980
    120212 ,04/08/1987
    312456 ,23/12/1977
    311110 ,12/04/1998
    323232 ,20/06/1990"
    I am Dont know how to Parse this String and put in table
    While 1<STRING.LENGTH
    LOOP
    EMPCODE=SUBSTRING();
    DATEOFBIRTH=SUBSTRING();
    INSERT INTO TABLE VALID_EMPCODE(EMPCODE,DATEOFBIRTH)VALUES(......);END LOOP
    VALID_EMPCODE
    EMPCODE VARCHAR2(30)
    DATEOFBIRTH VARCHAR2(15)
    Can any one tell me how to parse this whole string and break them

    Duplicate post
    How to Break this String and put into a Table

  • Need idea on how to implement this - repeating monthly data on day level

    Hi all, i had run into the following thing, this may soung easy, but i'm searching for the best solution:
    i have a dataset per the stores of the customer, the dataset is an asset count on the end of the specific month. I must not sum the data between two/N months.
    We they need to do several querries like
    sales/assets/day
    Sales/itemgroup/asset/day
    sales/salesperson/asset/day
    etc.
    My problem is that i have this data on a month&store level, but i need to provide a solution, so it could be handled as a "global" value on that, so they can query it "almost any ways".
    I don't really want to generate day/other level data based on this, so any tricks, how to repeat the data in all lines for that specific month on presentation/Business level?
    All ideas are welcome.
    Thanks&Regards,
    D
    Edited by: user8113564 on 2012.09.11. 4:52

    Sorry if I took this wrong but are you try to do level based measured
    Take the same physical column in the fact and have one aggregated at a month level and the other at a day level.
    If yes, make sure you build a date dimension hierarchy and mapped at the correct level to the fact. Then take your measure and correctly define them at the correct level, day, month etc
    This should sort it out

  • I have an iMac5,1 with an intel processor.  For the last month or so, whenever I play a video from an outside source - e.g. YouTube, the picture jumps and breaks-up.  All of my software is up-to-date.  Any thoughts on how to fix this problem?

    I have an iMac5,1 with an intel processor.  For the last month or so, whenever I play a video from an outside source - e.g. YouTube, the picture jumps and breaks-up.  All of my software is up-to-date.  Any thoughts on how to fix this problem?

    You're welcome. As to checking speed go to http://speedtest.net/ and it will choose the closest server for you. BTW, whatever you do, don't click on the robot icon that says "Start Scan" or MacKeeper below that. Only use the speed test in the middle that has the button BEGIN TEST on it. It will run a download speed test first and then an upload speed test. The download test will give a much faster response.

  • My Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem

    my Creative Cloud subscription has expired, and I assigned the monthly payment, but I can not open any progam creative cloud, I need help how to solve this problem

    Carlos-
    Start by signing out and back in to see if it will see the subscription: 
    How to sign in and sign out of creative cloud (activate/deactivate)
    If the apps are installed fine and close after launch see this link:
    CC applications close immediately after launch
    If the problem is something different, please let us know the error you see or what is happening on the screen so we can advise  you on a solution
    Pattie

  • The wifi i have been using for months quit working yesterday. any ideas how to fix this?

    the wifi i have been using for months quit working yesterday. any ideas how to fix this?
    HELP!!!

    Is your Wi-Fi visible?
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    iOS: Troubleshooting Wi-Fi networks and connections
    Did you check your router?
    iOS: Recommended settings for Wi-Fi routers and access points

  • TS1424 I have downloaded a series of prison break but 3 episodes are saying "you do not have permission to access the requested resource" and "this episode can not be downloaded at this time" any idea how to fix this please??

    I have downloaded a series of prison break but 3 episodes are saying "you do not have permission to access the requested resource" and "this episode can not be downloaded at this time" any idea how to fix this please??

    I got this error with my iPad 3, my wife's iPhone 4, but not with my iPhone 4s.

  • I cant update my software. It downloads updates , then says, 'an error has occurred and updates have not been installed'. I am now behind 6 months on updates. Any idea how to fix this?

    I cant update my software. It downloads updates , then says, 'an error has occurred and updates have not been installed'. I am now behind 6 months on updates. Any idea how to fix this?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select "/var/log/install.log" from the file list. Post the messages from the last installation attempt, starting from the time when you launched the Installer or Software Update. Post the log text, please, not a screenshot.
    If there are runs of runs of repeated messages, please post only one example of each. Don’t post many repetitions of the same message.

  • Music on iPhone4 4 automatically shuffles music and shuffle is not turned on in anyway. Anyone know how to fix this or is anyone having the same problem? This didn't start until the big update a month ago!!

    Anyone know how to fix this or is anyone having the same problem? This didn't start until the big update (5.0) a month ago!!
    When playing music there is no shuffle button like there was before... On the playlist there is a shuffle bar but this does nothing when I touch it. It's either stuck on my music is messed up.
    Any ideas??

    Start playing a song.
    Select the album artwork area for the song playing to reveal the scrubber for the song.
    Is the color of the icon located at the right of the scrubber blue?
    If so, that is the shuffle icon and blue means shuffle is on. Select the icon to turn shuffle off. White means off.

  • Contact from my phone book just disappeared.dont know how ..and it happen second time in 1 month time. Apple customer service in India is crap... Sorry to say but 700 contacts got disappeared.can someone tell me how to get this contacts back on my phone.p

    contact from my phone book just disappeared.dont know how ..and it happen second time in 1 month time. Apple customer service in India is crap... Sorry to say but 700 contacts got disappeared.can someone tell me how to get this contacts back on my phone.plz

    the same problem happened to me also, i felt that while playing hay day, if some calls came in between and if i answered the call, the setting of all the icloud items turns off. (i have backup of all the items on icloud), after deleting the account and making settings of mail, contact, calander etc on on mode and after rebooting the phone, it again download from icloud server. but it is just a headache. do not know how to handle this.

  • Hey Guys i have a problem with my mac since last month and it wont boot up it freezes in a grey apple logo and and spinning gear any body know how to fix this?

    Hey Guys i have a problem with my mac since last month and it wont boot up it freezes in a grey apple logo and and spinning gear any body know how to fix this?

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a boot failure is to secure your data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since your last backup, you can skip this step.
    There are several ways to back up a Mac that is unable to boot. You need an external hard drive to hold the backup data.
    a. Boot into Recovery by holding down the key combination command-R at the startup chime, or from a local Time Machine backup volume (option key at startup.) Release the keys when you see a gray screen with a spinning dial. When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in the support article linked below, under “Instructions for backing up to an external hard disk via Disk Utility.”
    How to back up and restore your files
    b. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode by holding down the key combination command-T at the startup chime. Connect the two Macs with a FireWire or Thunderbolt cable. The internal drive of the machine running in target mode will mount as an external drive on the other machine. Copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    How to use and troubleshoot FireWire target disk mode
    c. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to boot, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can boot now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Before reconnecting an external storage device, make sure that your internal boot volume is selected in the Startup Disk pane of System Preferences.
    Step 3
    Boot in safe mode.* The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Post for further instructions.
    When you boot in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, your boot volume is damaged and the drive is probably malfunctioning. In that case, go to step 5.
    If you can boot and log in now, empty the Trash, and then open the Finder Info window on your boot volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then reboot as usual (i.e., not in safe mode.)
    If the boot process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 4
    Sometimes a boot failure can be resolved by resetting the NVRAM.
    Step 5
    Launch Disk Utility in Recovery mode (see above for instructions.) Select your startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it produces. Look for the line "Permissions repaired successfully" at the end of the output. Then reboot as usual.
    Step 6
    Boot into Recovery again. When the OS X Utilities screen appears, follow the prompts to reinstall the OS. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with proxy servers, or with networks that require a certificate for authentication.
    Step 7
    Repeat step 6, but this time erase the boot volume in Disk Utility before installing. The system should automatically reboot into the Setup Assistant. Follow the prompts to transfer your data from a backup.
    Step 8
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store to have the machine tested.

  • My ipad is not being recognized by the new iTunes update that just came  out about a week ago it worked fine till the update I have windows 8.1 does anyone know how to fix this problem and I just bought my ipad mini about a month ago

    My ipad mini is not being recognized by the new iTunes update that just came  out about a week ago it worked fine till the update I have windows 8.1 does anyone know how to fix this problem and I just bought my ipad mini

    I found this is another thread - same issue.
    Re: iTunes has stopped working. Why? 
    Sep 11, 2013 6:07 AM (in response to thurdy)
    Resolved!
    After contacting Apple, I received a reply from their engineers:
    Copy QTMovieWin.dll from:  C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    to: C:\Program Files (x86)\iTunes
    And that did the trick.
    Message was edited by: Stryder777

  • I have PS and LR but want Premier.  How much more is this per month?

    I don't understand how these apps are bundled.  If I want Premier on top of PS and LR, how much does this cost?  Do I piggyback on my existing membership?  Thanks!

    The subscriptions fall into 3 plans:
    PS+LR (standalone special deal - no connection to other plans)
    Single App subscriptions
    Full Cloud
    I suspect you'd either have to take out a Single App subscription for Premiere Pro on its own or a full Cloud membership (and cancel your PS+LR subscription).

  • How sturdy is this thing?

    I was wondering, how sturdy is this ibook? Mine is 3 months old and it seems so fragile to me. anyone have any ideas on how strong this thing is? the new dell laptop in the house seems 100 times sturdier than this 12" ibook.

    it has a polycarbonate casing on it and if you haven't been aloud to play with that kind of stuff you need to get a sheet about 5mm in thickness and try to break it without other devices and try firing a gun at it (no high power rifles now) and it won't break i've seen it hold up to a .357, a .38, a .38 special, a .22 low power rifle, and shotguns from almost point blank (to allow the projectile a chance to not stay in the barrel). it will hold up now the stuff used by Apple isn't the same grade used to stop bullets but it will hold up to a good whack (don't try it unless you can hide any marks) or a decent drop but the only place of major concern is a corner or the connecting piece between the screen and the computing components.
    P.S. i almost forgot it also can take a hit from a .44 and the .357, the .38, the .38 special, and the .44 are all S&W Magnums.

Maybe you are looking for

  • Selection screen : matchcode on RYEAR and also question on FILE_SAVE_DIALOG

    Hiii Question 1 --> i have on the selection screen a parameter of type RYEAR i check in database and theere is no matchcode attach to it. can you please advise whether there is a standard matchcode i can used or am i missing something? Question 2 -->

  • Set up Depreciation Key with specific depreciation date

    Hi Gurus,        Our system is ERP 4.7. I am trying to set up the depreciation key with the specific depreciation date. Here is more detail; I have the tax requirement that the asset will get depreciated at 25% until 03/31/08 and 20% from 04/01/08. I

  • Trigger proxy when Process Order is released

    Dear ABAP Experts, I have a requirement where in I am supposed to send out a proxy with the details of the Process Order that is being released when the PO is released using COR2 or COHVPI transaction. The same can be achieved by coding in specific U

  • Fade not working

    I cannot get fade out at the end of a clip; using the Rt click/Fade/fade Video out or Fade Audio out. I've consulted the manual and a search on "Fade" and "Fade in" brings up nothing relative to that menue option; it just talks about transitions. How

  • Oracle to aquire Captovation so this is interesting too

    REDWOOD SHORES, Calif., Jan. 16 /PRNewswire-FirstCall/ -- Oracle announced today that it has agreed to acquire Captovation... : http://biz.yahoo.com/prnews/080116/aqw114.html?.v=31