I want to combine a bunch of queries and dump the results - spreadsheet

I have a bunch of SQL queries. I want to run the SQL queries and dump the results into one single spreadsheet in a formatted fashon.
Assume that one of my queries returns the following:
Week 10, Door, 15
Week 10, Window, 20
Week 10, Stair, 25
Week 11, Door, 50
Week 11, Window, 75
Week 11, Stair, 100
Week 12, Door, 1
Week 12, Window, 2
Week 12, Stair, 3
I would then want to take all these results and put them into a spreadsheet with a bunch of other results:
So header would look like:
Week 1, Week 2, Week 3, ...Week 10, Week 11, Week 12...
Then, down below there would be three rows which have the following in Col A:
Door
Window
Stair
So in row "Door", under Col "Week 10", there would be a 15
Under "Window", under Col "Week 11", there would be a 75
Under "Stair", under Col "Week 12", there would be a 3
The column headers would all be in weeks, but I want to basically make a matrix out of my SQL queries. So there would be many rows besides "Door", "Window", and "Stair", but they would all have similar results as supplied by my other queries. Anyone know how to do such mapping?

Check this link --
[url http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=last90days&userID=&numResults=15]Pivot Search In Oracle
Regards.
Satyaki De.

Similar Messages

  • Executing Abap Queries in Abap Code and processing the result

    Hi,
    I want to execute ABAP Queries (designed by sq01) in an abap report and processing the result in an internal table.
    How could it be work?
    Thanks a lot for your responses,
    with kind Regards
    Reinhold Strobl

    Hello,
    GO to SQ01 and select your query. Go to Menu QUERY-->More Functions->Display Report Name.
    You can then take that report name and go to SE38. Copy the code before END-OF_SELECTION and then modify as per your own requirements.
    Regrads
    Saket Sharma

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • Hello! I am currently using ios 4.3.3 on my ipod touch 4g. I want to install ios 5.1.1 and ignore the ios 6. When I go to itunes it automatically suggest the ios 6. how can I install ios 5.1.1 on my ipod?

    hello! I am currently using ios 4.3.3 on my ipod touch 4g. I want to install ios 5.1.1 and ignore the ios 6. When I go to itunes it automatically suggest the ios 6. how can I install ios 5.1.1 on my ipod?

    Hi GQ,
    I need to know how to upgrade an iPod touch from 4.3.3 to 5.1.1 - which you can't do via iTunes.
    Can you help?
    [email protected]

  • HT4436 Just did a restore for a new 4S. I want to do a new iCloud account and discard the one that came with the restore. Any suggestions?

    Just did a restore for a new 4S. I want to do a new iCloud account and discard the one that came with the restore. Any suggestions?

    Welcome to the Apple community.
    Settings > iCloud, scroll down and delete the account, sign back in by choosing the option to create a new Apple ID.

  • Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do no

    Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do not get an installation screen or a chance to enter the Licence no.

    Use another browser.
    Mylenium

  • Service order is on product deliver status ,then i want to display product delivery status date and time on result list ?

    Hi Team,
    service order is on product deliver status ,then i want to display product delivery status date and time on result list ?My requirement is i want to display product delivery status date and time based on delivery status we need to display the date and time .how to do it.? basically i have created the productu delivery status field in search and result through AET.
    Now the fields will be available in BTADMINH.
    how to set based on status delivery to get the date and time .
    Thanks
    Kalpana

    HI Ajay,
    I have added code in BT116h_srvo,attributes - LCSTATUS,method -  SET_LCSTATUS.but after change status f8 ..but the value is not filled in result list..so i need to write the logic in EH_ONSAVE or some other..could you please help here..what change i need to do..
    IF
    <nval> = 'E0004'.
    DATA : lv_date TYPE dats.
    DATA : lv_time TYPE tims.
    lv_date = sy-datum.
    lv_time = sy-uzeit.
    DATA : lr_parent TYPE REF TO cl_crm_bol_entity,
    lr_adminh TYPE REF TO cl_crm_bol_entity,
    lr_root TYPE REF TO cl_crm_bol_entity,
    lv_process_type TYPE crmt_process_type,
    lv_parent_name TYPE crmt_ext_obj_name,
    lr_current TYPE REF TO cl_crm_bol_entity.
    lr_current ?= current.
    lr_parent ?= lr_current->get_parent( ).
    CHECK lr_parent IS BOUND.
    CALL METHOD lr_parent->get_parent
    RECEIVING
    rv_result = lr_adminh.
    CHECK lr_adminh IS BOUND.
    TRY.
    CALL METHOD lr_adminh->set_property
    EXPORTING
    iv_attr_name = '/itcit/F0010'
    iv_value = lv_date. "value.
    CATCH cx_sy_conversion_error .
    ENDTRY.
    TRY.
    CALL METHOD lr_adminh->set_property
    EXPORTING
    iv_attr_name = '/itcit/F0011'
    iv_value = lv_time.
    CATCH cx_sy_conversion_error .
    ENDTRY.
    ENDIF.
    Thanks
    kalpana

  • HT4623 what if i want to delete an app; i tap and hold the app until it jiggle, but  there's no "x" to delete.

    what if i want to delete an app; i tap and hold the app until it jiggle, but  there's no "x" to delete.

    If you're talking about deleting (as opposed to closing) an app, you do it just like on previous versions; hold until jiggle, press red X. If they're jiggling but you're not seeing the X, you may need to check your Restrictions. Some apps (Apple included) can't be deleted.
    = L.I.

  • Hi ! Please my iphone is on the activation page and i can't do nothing, there is a sim card into but itune don't recognise it, and the phone don't want to activate. I tried everything, and before the reboot the iphone 3 was worked verry well. Please help

    Please my iphone is on the activation page and i can't do nothing, there is a sim card into but itune don't recognise it, and the phone don't want to activate. I tried everything, and before the reboot the iphone 3 was worked verry well. Please help me !

    Hello there, rebeccallouche.
    The following Knowledge Base article offers up some great steps and links to some additional information that is pertinent when having activation issues with your iPhone:
    iPhone: Troubleshooting activation issues
    http://support.apple.com/kb/ts3424
    Additionally, if the iPhone is not being recognized in iTunes this article will be useful as well:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • HT202667 How do I combine 2 separate Apple IDs and all the iTune/iCloud purchases/data/access under one Apple ID, preferably my current one?

    How do I combine everything from my deceased husband's one or more Apple IDs into my own 1 Apple ID ( preferably my current Apple ID)?  I want to maintain it all under 1 Apple ID; the data and access includes iTunes/Apps store purchases and major OS upgrade purchases, iCloud access and storage, and multiple email addresses. (I want to be able to reflect these references to his previous email addresses in my own Apple ID, if at all possible!).  Going back and forth between 2 different login/accesses on the same MacBook Pro is frustrating and confusing.  
    [I also need to do the same with all access to his files that he created and that are maintained on the hard drive and back up; Any suggestions are welcomed! ]
    Could someone let me know if this is possible and if so, how best to initiate this migration? 

    Apple ID's can't be merged.

  • Combine 2 Answers and divide the results

    Hello,
    Is it possible to further calculations of results of two-generated queries.
    I created two queries. The results can I view in the dashboard. However, I am unable to carry out further calculations with the results. Now I wanted to divide a query from the other.
    How can this be done?
    Thanks
    Joh

    Hi,
    Well I think what you suggest is merging the "rows" of two ansers into a new answer. This works quite well but doesn't help in our case. We have to answers:
    1) A two-row-table with row1 a product-id and row2 the total costs spend to produce this product in the last quarter.
    2) A two-row-table with row1 a product-id and row2 how often the product was sold.
    Of cause it is now quite interesting to find out the costs per unit. I can't believe it isn't possible to do such a simple thing :-( Is there no way around it or are we simple missing it?
    Unfortunately we have no way to derive these costs per unit in another way. I could eventually do this if I could self-join my Facts-table with itself but I think this too isn't possible? It would be quite easy for me to provide a regular-sql-statement to calculate these costs but since this has joins between tables of my star-schema I don't know how to translate this into a BI-Suite-SQL-Query.
    Any help would be highly appreciated on this thing,
    -Johannes

  • I want to make a copy of slide show create from my own photographs and with a an audio track behind them. I have carefully followed the iDVD tutorials and burnt the result to a disc but image quality is very poor. What is wrong?

    I want to make a DVD of a slide-show with an audio track behind the photographs. I have carefully followed the iDVD video tutorials but the result is far from satisfactory. The quality of the images on the resulting DVD are blurred and indistict although the original photographs are of a very high quality. Where am I going wrong? Would I have better results from a different program than the inbuilt iDVD and if so so what programs have others found to be better? I should be grateful for some expert guidance.

    Hey Falcopebo,
    Thanks for using Apple Support Communities.
    Looks like you have image quality issues when using iDVD to burn.
    iDVD 7.0: Burned DVD has interlacing, pixelation, or image quality issues
    http://support.apple.com/kb/ht4078
    A standard DVD made by iDVD is made to the standard DVD resolution of 720 X 480, which is smaller than most HDTVs and monitors. When expanded to fit the entire screen or monitor, the image will distort slightly due to upscaling to fit the screen or monitor.
    Have a nice day,
    Mario

  • I want to download itunes to my laptop and have the same library i have on my main computer at home. How can I do this?

    I have a laptop which I use away from home and would like to download itunes so if i download something on my laptop, i can transfer it to my iPad straight away without having to transfer the music to my main computer. How can i have my library on my laptop itunes like i have on my main computer? is this a possibility?

    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have failed to move contacts and calendar items across you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • I want to have a progress bar monitor and display the progress of a file being opened, How do I do it?

    I have written large files for a report. When I open the files in the VI by pushing a button I want to view the progress of the file being opened. My first thought was to get the file size, some how measure the number of bytes comming out and monitor it on the progress bar. I am unsure about how to do this. If you know of a better way to monitor and disply the progress of an opeing file please let me know.

    If I understand you correct the progress bar is not the problem, it's to get a numeric value indicating the progress...right?
    If so then you could read the file size, preallocate a byte array to hold the file, then read it in chunks and put the chunks into the array using replace array elements...(you could concatinate strings, but that would easily become very memory and speed expensive...)until you have read the entire file. If the file is 20 MB and you want the progress bar to have a resolution of about 1% read it in chunks of 256 KB...For each chunk read, increment the progress bar...
    MTO

  • I want to put a number in a cell and tell it to times by 2 and get the result as a total further along. Sorry couldn't find the answer in any tutorial.

    I want to put a number in a cell and tell it to times by 2 to give the result i another cell?  Sorry couldn't find the answer in any tutorial.

    Hi Caakie,
    Sounds like tou need some basic information.
    The best advice I can give someone new to Numbers (and to spreadsheets in general) is to download and read at least the first four chapters of the Numbers '09 User Guide. You'll find a download link in the Help menu in Numbers '09.
    When you want to start using more complicated formulas, you'll also need the iWork Formulas and Functions User Guide, available from the same menu.
    Regarding your question: "Can you just give me the string for B which is just add and C which is *2."
    What is to be added in "B"? What is to be multiplied by 2 in "C"?
    =2+3 will return the result 5.
    =A+B will return the sum of the numbers in column A and column B in the same row as the cell containing the formula. If either A or B contains a non-numerical value, the formula will return an error message.
    =3*2 will return the result 6.
    =A*B will return the product of the numbers in column A and column B in the same row as the cell containing the formula. If either A or B contains a non-numerical value, the formula will return an error message.
    Regards,
    Barry

Maybe you are looking for

  • Can anyone help me resolve a kernel panic attack in IMovie?

    Each time I "share" a project as a movie in IMovie my Mac crashes with a kernel panic attack. Here is the most recent report: Interval Since Last Panic Report:  1041882 sec Panics Since Last Report:          29 Anonymous UUID:                    667A

  • Alpha Channel Settings keep reverting back to "Ignore"

    Hey All, Just diving into FCPX and I had a question about the alpha channel. After finding the Alpha setting in the inspector, I switched to it premultiply. However, upon clicking out of it, the inspector reverts back to "ignore alpha." It does this

  • Can't delete slide show from catalog in PSE 6

    I am a fairly new user of PSE working in a Windows Vista environment.  When I right click on the thumbnail of an unwanted slideshow in PSE 6 and select "Delete from Catalog" I get the message "An error occurred while reading files or writing files to

  • OCS 2007 R2 to )365 migration

    I've Exchange 2007 & OCS R2 deployed in On-Prem, and we planning to moved to O365 and de-commission our Exch & OCS R2. My question once we moved O365, the users who are using OCS how can they access Online lync once we de-commission our OCS and clean

  • Musings: MVC Front Controller/Command and Controller Strategy

    Hi, I am currently taking my first shot at implementing the Front Controller pattern, the Command and Controller Strategy flavor, in Java. When applying the pattern, my chosen point of focus is achieving as much isolation as possible of Client-specif