Here is the output:
07/20/2007 : Cardiology 371.000000 Neurology 463.000000 All_sum 2134.000000 call_date 07/20/2007 Gastroenterology 383.000000 General 800 # 455.000000 Radiology 462.000000 Cardiology 1 Neurology 6 All_sum 63 call_date 07/20/2007 Gastroenterology 4 General 800 # 19 Radiology 33 Cardiology 1 Neurology 6 All_sum 66 call_date 07/20/2007 Gastroenterology 4 General 800 # 19 Radiology 36

07/23/2007 : Cardiology 230.000000 Neurology 501.000000 All_sum 1942.000000 call_date 07/23/2007 Gastroenterology 391.000000 General 800 # 300.000000 Radiology 520.000000 Cardiology 2 Neurology 10 All_sum 107 call_date 07/23/20 07 Gastroenterology 4 General 800 # 25 Radiology 66 Cardiology 2 Neurology 10 All_sum 110 call_date 07/23/2007 Gastroenterology 5 General 800 # 26 Radiology 67

The columns are in the same location. I just might be a bit limited by the results of the stored procedure.

I am looking to create something along the lines of:
Date Data Col A Col B Col C Col D Total
7/23 Received 10 20 30 40 100
Handled 5 15 25 35 80

There would another row for each date, but there is the general idea. I don't need a total for the day since the 3 items are not something that would be valuable summed together.

I could probably step through each key and assign it a location in the spreadsheet which could work just fine since it is the column. I am just not sure how to step a hash for a single key.

20070724 Janitored by Corion: Removed superfluous <table> element


In reply to Re^4: Merging Results from 3 different queries by MegaVoice
in thread Merging Results from 3 different queries by MegaVoice

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.