joec_ has asked for the wisdom of the Perl Monks concerning the following question:
I need to create a csv file from the following tables:
Such that i end up with a csv like:PARAM_ID NAME ---------------- 1 PARAM1 2 PARAM2 3 PARAM3 OBJECT_ID PARAM_ID PARAM_VALUE ------------------------------------ 1 1 6.8 1 2 text1 1 3 text2 2 1 5.5 2 3 text3
Note that the parameter headings need to match the values and some may be blank ie on object_id 2, param2 is empty.OBJECT_ID,PARAM1,PARAM2,PARAM3 1,6.8,text1,text2 2,5.5,,text3
Would anyone know of a way to acheive this?
Thanks
Joe
-----
Eschew obfuscation, espouse elucidation!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating a csv from two database tables
by linuxer (Curate) on Apr 06, 2009 at 14:56 UTC | |
by joec_ (Scribe) on Apr 06, 2009 at 15:12 UTC | |
by linuxer (Curate) on Apr 06, 2009 at 16:43 UTC | |
by linuxer (Curate) on Apr 06, 2009 at 15:23 UTC | |
by joec_ (Scribe) on Apr 06, 2009 at 15:30 UTC | |
|
Re: Creating a csv from two database tables
by punch_card_don (Curate) on Apr 06, 2009 at 17:02 UTC | |
by joec_ (Scribe) on Apr 07, 2009 at 08:47 UTC |