Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: hoh or hoa data structure

by Generoso (Prior)
on Jan 11, 2011 at 00:08 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://881564]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found