How can i display the days of the month in my report, please help

dear all
my table name is day_close_table
it contains these columns:
product_code number,
the_date date,
sale_qty number,
buy_qty number
price number
i need to make report like the fiollowing
product : 10144 from: 1-jan-2006 to :10-jan-2006
days | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
Sale | 50| 10| 20| 15|10|5 | 6 | 11|12|6 |
buy |10 | 20 | 10| 0 | 0 | 0 | 10| 1 | 1| 1|
i created two query and i decieded to join them
the first one is to display days in horizon direction
my query is:
SELECT TO_CHAR(THE_DATE,'DD-MONTH')D,
FROM HS_DAY_CLOSE;
my question is how can i display the records in horizone direction
please help

i solved this problem using this query
SELECT STOCK_CODE, COUNTRY_ID,
SUM(DECODE(to_char(the_date,'dd') ,'01', buy_qty)) "1",
SUM(DECODE(to_char(the_date,'dd') , '02', buy_qty)) "2",
SUM(DECODE(to_char(the_date,'dd') , '03', buy_qty)) "3",
SUM(DECODE(to_char(the_date,'dd') , '04', buy_qty)) "4",
SUM(DECODE(to_char(the_date,'dd') , '05', buy_qty)) "5",
SUM(DECODE(to_char(the_date,'dd') , '06', buy_qty)) "6",
SUM(DECODE(to_char(the_date,'dd') , '07', buy_qty)) "7",
SUM(DECODE(to_char(the_date,'dd') , '08', buy_qty)) "8",
SUM(DECODE(to_char(the_date,'dd') , '09', buy_qty)) "9",
SUM(DECODE(to_char(the_date,'dd') , '10', buy_qty)) "10",
SUM(DECODE(to_char(the_date,'dd') , '11', buy_qty)) "11",
SUM(DECODE(to_char(the_date,'dd') , '12', buy_qty)) "12",
SUM(DECODE(to_char(the_date,'dd') , '13', buy_qty)) "13",
SUM(DECODE(to_char(the_date,'dd') , '14', buy_qty)) "14",
SUM(DECODE(to_char(the_date,'dd') , '15', buy_qty)) "15",
SUM(DECODE(to_char(the_date,'dd') , '16', buy_qty)) "16",
SUM(DECODE(to_char(the_date,'dd') , '17', buy_qty)) "17",
SUM(DECODE(to_char(the_date,'dd') , '18', buy_qty)) "18",
SUM(DECODE(to_char(the_date,'dd') , '19', buy_qty)) "19",
SUM(DECODE(to_char(the_date,'dd') , '20', buy_qty)) "20",
SUM(DECODE(to_char(the_date,'dd') , '21', buy_qty)) "21",
SUM(DECODE(to_char(the_date,'dd') , '22', buy_qty)) "22",
SUM(DECODE(to_char(the_date,'dd') , '23', buy_qty)) "23",
SUM(DECODE(to_char(the_date,'dd') , '24', buy_qty)) "24",
SUM(DECODE(to_char(the_date,'dd') , '25', buy_qty)) "25",
SUM(DECODE(to_char(the_date,'dd') , '26', buy_qty)) "26",
SUM(DECODE(to_char(the_date,'dd') , '27', buy_qty)) "27",
SUM(DECODE(to_char(the_date,'dd') , '28', buy_qty)) "28",
SUM(DECODE(to_char(the_date,'dd') , '29', buy_qty)) "29",
SUM(DECODE(to_char(the_date,'dd') , '30', buy_qty)) "30",
SUM(DECODE(to_char(the_date,'dd') , '31', buy_qty)) "31"
FROM HS_DAY_CLOSE
GROUP BY STOCK_CODE,COUNTRY_ID

Similar Messages

  • How can i display a portlet in the Edit view only ?

    Dear All,
    I'm developing a portal in which the end user can change the content of the portal page (personalize) using Edit smart link and i ask How can i display a portlet in the Edit view only ? not shown in the production view ?

    Last time I heard with Oracle they said the only way is to look at the current URL. If it contais _mode=16 then we are in edit mode.
    This is a function I use:
    FUNCTION inEditMode return boolean is
    bEdit boolean := false;
    begin
    if PORTAL.wwpro_api_parameters.get_value('_mode', 'qaz') = '16' then
    bEdit := true;
    end if;
    return bEdit;
    end inEditMode;
    Kind regards
    Tomas Albinsson
    Stockholm, Sweden

  • How can I display on a string the symbol omega (ohms)

    how can I display on a string the symbol omega (ohms)

    Hi,
    See there : http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000032410000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Hope this helps !
    Julien

  • I have the 5S and there is a check mark next to no sound when phone is in lock mode that prevents me from getting my calls and messages. How can I turn that off? Clicking it does nothing. Please help! Thanks!

    I have the 5S and there is a check mark next to no sound when phone is in lock mode that prevents me from getting my calls and messages. How can I turn that off? Clicking it does nothing. Please help! Thanks!

    Thanks for taking the time to try to help me. . I checked and the Do not disturb is off. The check is still there stopping calls from coming in when phone is locked. Any other ideas? Thanks again!

  • I deleted/uninstalled iMessage on my Mac (using iTuneUp) but now I want it back. How can I do that? I have OS X Yosemite. Please help.

    I deleted/uninstalled iMessage on my Mac (using iTuneUp) but now I want it back. How can I do that? I have OS X Yosemite. Please help.

    Hello ac4320a,
    Thanks for using Apple Support Communities.
    To reinstall any application which came with your Mac, you will need to reinstall OS X.
    OS X Yosemite: Reinstall OS X
    Have a good one,
    Alex H.

  • How can I display event notes on the relevant event in week/day view?

    Hi folks,
    I'm looking for a way to display the event notes on the actual event in week or day view.
    This will greatly help plan out my week (especially for repetitive events with custom notes for each occurrence).
    I can understand that Apple ommitted this feature to avoid clutter on short-duration events perhaps?
    Clicking on the event (or using the Inspector) to see the notes is not an option. I need an overview that can be viewed at a glance or even printed.
    Looking forward to your suggestions...
    Trev

    Hi Trev,
    With iCal as it is the only suggestion I have would be to add the full text to the title of the events.
    FYI, this is a user to user forum. By posting here you are not guaranteed someone from Apple will read it. If you'd like Apple to know about this I suggest you send them feedback.
    Best wishes
    John M

  • How can i display units only for the result set

    hi
    i do not want to display units (example: $ or %) for my key figure columns but i want to display units to the result.
    how can i do that

    Hi Surya,
    I don't think it is possible to have both non-unit and unit in the same kf.
    One potential workaround to do this is to create a calculated key figure/ formula that use the NODIM function for single values. Example: NODIM(0AMOUNT). Then, create a calculated key figure/formula that computes overall result on the same kf and supresses individual values but does not use NODIM....perhaps this can help you work out a solution.
    Hope this helps.
    Regards,
    Petter
    Message was edited by: M Petter

  • How can I display lyrics in iPad, the song which I purchase in iTunes, and added lyrics in iTunes.

    I just brought some song in iTunes, and add lyrics in it, can be display in MAC, but can't display in my IOS8 iPad .  Please help!

    For whatever reason the iPad will not display lyrics, I think its been this way since iOS 7.  The iPhone will display them, but not iPad.  I don't think its a bug, I think Apple wants it this way for some reason ... give your feedback here:
    http://www.apple.com/feedback/ipad.html

  • How can I display browsing history (like the "history" function in IE)

    In IE when you click "history" you get a list of all the websites visited. In FF "history" only shows Bookmarks. Can I display my browsing history in FF?

    See:
    *[[/questions/932927]] Firefox 14.01 not importing html bookmarks

  • How can I display SQL%ROWCOUNT in the "Process Success Message"

    Hi all;
    I am trying to display SQL%ROWCOUNT in the "Process Success Message" of a custom update Process.
    Any ideas?

    Chris,
    I assume,
    ORDER_ITEM_LOAD.MERGE_INTELLI_LABS ( in_DEPARTMENT_UID );
    is a package / procedure you call to do something. Change the procedure and add an
    out parameter to it, which will get the
    SQL%ROWCOUNT
    value. Then, call this package like this:
    DECLARE
      in_DEPARTMENT_UID NUMBER;
    BEGIN
      in_DEPARTMENT_UID := :P4_DEPARTMENT_UID;
      ORDER_ITEM_LOAD.MERGE_INTELLI_LABS ( in_DEPARTMENT_UID,  :P4_ROW_COUNT );
    END;Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How can I display previous monthname including the year?

    I have the following sql statement:
    SELECT Cast(datename(month, dateadd(mm, -1, getdate())) as varchar(15)) + '-' + Cast((DATEPART(YYYY,GETDATE())) As CHAR(4))
    The result displays as July-2014 which is correct for previous month...
    But on next year January-2015 it will display December-2015.
    Is it possible to have the date shown as December-2014?
    I appreciate any help.
    Thanks in advance.

    The date shows the result that I am looking for.
    SELECT Cast(datename(month, dateadd(mm, -1, getdate())) as varchar(15)) + '-' + Cast((DATEPART(YEAR,GETDATE()-1)) As CHAR(4))

  • On plugging my iPod to the iMac, all the songs got deleted on the iPod. Now it doesn't sync to iTunes and it shows that 'mac os can't repair the device'. How can I get my iPod to start functioning normally again? Please help!

    Hey! I plugged my 80 gb ipod classic to my imac, but had to switch it off when itunes hung. The ipod wasn't switching on , and when it did, all the data, including all my songs were deleted. Now, when I try syncing it to the mac, it doesn't connect to the itunes and I keep getting an alert saying ' Mac osx can't repair the device'. Now, althought all the data is gone, the ipod still shows 30 gb free. What will happen if I partiton my ipod? How do I get it to start functioning again? Please help!

    Try a low level reformat of the iPod's hard drive to possibly try and repair some of its damage. Use the instructions in this article to walk you through the process.
    http://www.methodshop.com/gadgets/ipodsupport/erase/
    B-rock

  • I just lost my iphone5 in a foreign country. Was not able to register it with icloud and have not installed the findmy iphone app. How can i wipe out my data remotely without these setups? Please help!

    I just lost my iphone5 in a foreign country. Was not able to  previously register it with icloud and have not installed the findmy iphone app. How can i wipe out my data remotely without these setups? Is there any good app i can use to track it? Please help!

    No, nothing you can do to track it if you did not take any measures before the loss.

  • HT4623 I changed my itunes email but my iphone is still my old email, and it prompts me to enter password but it doesnt work. How can I get my new itunes email on my iphone4? Please help.

    I changed my itunes email the other day. I need to know how to change my email on my iphone 4 so I can install apps and stuff. How do I change my itunes email on my phone to the same as my computer. Please help bc it prompts me to enter my password but it is my old email and now it wont work. What do I do?

    Hi Friend,
    Go to: Settings>>iTunes Store and App Store, click in your old email and finalize the section. Here, sign in your new email with new password.

  • Photobooth video saves in .gif. How can I make it save them as .mov or .avi? PLEASE HELP!!

    For some reason photobooth movie recordings are automatically saved as .gif files by default. How can I make it change?
    Please help me as I'm completely LOST!
    Thanks!!!!
    pamplonica

    The fastest way would be what you had been doing before (dragging the movie to the desktop.) Perhaps it was just a fluke and it's working again?
    Otherwise, you can make an alias to the Photo Booth folder in the Finder's sidebar. Open the Pictures folder (same way as before) and drag the Photo Booth folder in the sidebar on the left under PLACES. Make sure when you drag it that you place it between two folders and not over a folder, like this:
    ^^ Good! (This will place an alias to the Photo Booth Folder in the sidebar)
    ^^ Bad! (This will move the folder into Documents)
    The folder will now show up in the sidebar and you can click on that folder to bring it up. That should make it a bit faster to get there.
    Have your sister try this: right-click (two-finger tap with the trackpad) on the movie file, then go to Open With > QuickTime Player in the menu. Perhaps that will get it to open? I'm not completely sure why it's not working correctly on her computer.

Maybe you are looking for

  • Service PO Line Items u2013 EXT_LINE Replication values

    Hi, We have run into a new production problem replicating service po changes to our ECC 6.0 backend system from our SRM 5.0 EC system. Weu2019ve reported the problem to OSS but weu2019re not able to come to an understanding. When we add a new service

  • Catalog Prices with factor 100 in ECO ERP 5.0

    Hi together, We are using ECO ERP 5.0 without IPC and we get our catalog and basket prices from our SAP ECC 5.0 using a TRex. Now we have the following symptom: In the web shop all prices, which are shown in the catalog are multiplied with factor 100

  • How to edit source sequence from 'multicam mode' sequence (not bearing multicam icon)?

    I'm 'multicam editing' what i believe I setup as a regular sequence, then enabled (i believe by nesting) as opposed to a textbook multicam sequence setup with multicam icon where you setup a 'source' then a 'target' prior to starting.  my 'multicam'

  • Bapi or FM to mark material for deletion

    Hi all, Is there a bapi or FM to mark material for deletion that we do through MM06. Let me know and i would appreciate if some could me that piece of bapi's code Thanks Preeti

  • UCM VCR adapter exception

    Hi, I am getting following error while creating a UCM repository in weblogic portal error message : com.bea.content.RepositoryException: UCM feature folder has a invalid version. Actual version is 1000.0.0.49, but UCM SPI requires at least version 10