Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl Monk, Perl Meditation
 
PerlMonks  

Re: hoh or hoa data structure

by Generoso (Priest)
on Jan 11, 2011 at 00:08 UTC ( #881564=note: print w/ replies, xml ) Need Help??


in reply to hoh or hoa data structure

Have you consider an SQL answer to your problem is place of a Perl

HREF=http://stackoverflow.com/questions/397384/mysql-finding-subtotals


Comment on Re: hoh or hoa data structure
Re^2: hoh or hoa data structure
by rocky13 (Acolyte) on Jan 11, 2011 at 00:34 UTC

    Yes, I have. You can use order by e_id, cus, ta, compute sum(col4), sum(col5) by e_id, cus, ta. I want to know if you can do it in Perl. I know there is a way to achieve the shown data structure because I did it once before with a stock file. Unfortunately, I can't figure it out this time and I can't find the code.

      I know there is a way to achieve the shown data structure because I did it once before with a stock file.

      Perhaps How can I visualize my complex data structure? will help you with your data structures; it's what I use to help me with mine.

      Unfortunately, I can't figure it out this time and I can't find the code.

      Oh, I really do recommend some form or fashion of a Version Control System. I am constantly looking back at things (even very broken things) to find out how I accomplished a particular task, or how not to try to solve a given problem. Recently, I've even begun putting various notes (usually OpenOffice docs) in because, in my case, TortoiseSVN makes it so very easy to keep things in synch between my main work machine and the netbook I carry whenever I leave my home office.

      HTH,

      planetscape

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://881564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2014-04-23 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls