SunWuKung wrote:
What you are trying to do is a transpose, taking a column of values and turning it into a row.In article <[EMAIL PROTECTED]>, [email protected] says... You transpose columns to rows by doing a JOIN of some flavor or another (in this case a cross-join in which the filters bring us down to one row per table). The reverse operation is done with UNIONs. This code has not been tested, but it should get the idea across. It should also be fairly easy to generate in the client since it is systematic: SELECT into parm1, parm2, parm3 x1.parameter_value, x2.parameter_value, x3.parameter_value FROM parameters x1,parameters x2, parameters x3 WHERE x1.parameter_name = 'USA Patriot ACT' AND x2.parameter_name = 'Is not constitutional' AND x3.paremter_name = 'IMHO' AND x1.methodid=999 AND x2.methodid=999 AND x3.methodid=999 Hope it works!
|
begin:vcard fn:Kenneth Downs n:Downs;Kenneth email;internet:[EMAIL PROTECTED] tel;work:631-689-7200 tel;fax:631-689-0527 tel;cell:631-379-0010 x-mozilla-html:FALSE version:2.1 end:vcard
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly
