<div dir="ltr"><div>I'm playing with the output right now and I think I may have solved it, I'm still in process of writing it out.    Thanks for your reply!<br><br></div>Lisa<br></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Tue, Mar 25, 2014 at 11:16 AM, Sri Vedurumudi <span dir="ltr"><<a href="mailto:sri@vedurumudi.com" target="_blank">sri@vedurumudi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div text="#000000" bgcolor="#FFFFFF"><br>
<span>Lisa,<br>
    Isn't it easier for you to alter the SQL query so it gives you the 
data summed up and pre-grouped? <br>
<br>
Regards,<br>Sri </span><br>
<blockquote style="border:0px none" type="cite">
  <div style="margin:30px 25px 10px 25px"><div style="display:table;width:100%;border-top:1px solid #edeef0;padding-top:5px">   <div style="display:table-cell;vertical-align:middle;padding-right:6px"><img src="cid:part1.01030302.01060204@vedurumudi.com" name="144fa0779f67b224_compose-unknown-contact.jpg" height="25px" width="25px"></div>
   <div style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a href="mailto:staurofilax77@gmail.com" style="color:#737f92!important;padding-right:6px;font-weight:bold;text-decoration:none!important" target="_blank">Lisa Cloutier</a></div>   <div style="display:table-cell;white-space:nowrap;vertical-align:middle">
   
  <font color="#9FA2A5"><span style="padding-left:6px">Tuesday, March 
25, 2014 12:12 PM</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi
 All,<br><br></div>This should be easy and I've done similar things 
before, but I can't seem to get the data structure to output properly. <br><br>
</div>I have data in the following format:<br><br></div>Market1 65000 
3000<br></div>Market1 130000  5000<br></div>Market1 65000   4500<br></div>Market2
 65000  3000<br></div>Market3 32000  800<br></div>Market3 32000  1000<br>
<br></div>What I need to do is get the markets so that they are unique 
so that I can use them as hash keys.  So I need to add all of the 2nd 
column and all of the 3rd column for each market so that there is only 
one entry per market, with the duplicate entries all added together.  <br>
<br>The data is coming out of an arrayref (from an Oracle database) so I
 don't have any code that shows the problem, just the foreach loop 
iterating through each reference in the arrayref.  <br><br>Any help 
would be greatly appreciated. <br>
<br>Thanks,<br><br></div>Lisa<br></div>

</div></div><div>_______________________________________________<br>Dfw-pm mailing 
list<br><a href="mailto:Dfw-pm@pm.org" target="_blank">Dfw-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/dfw-pm" target="_blank">http://mail.pm.org/mailman/listinfo/dfw-pm</a><br></div></div>
</blockquote>
</div>
<br>_______________________________________________<br>
Dfw-pm mailing list<br>
<a href="mailto:Dfw-pm@pm.org">Dfw-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/dfw-pm" target="_blank">http://mail.pm.org/mailman/listinfo/dfw-pm</a><br>
<br></blockquote></div><br></div>