MySQL Forums
Forum List  »  New in 4.1: Subqueries

Re: Transpose row into column
Posted by: Robert Mann
Date: January 04, 2007 05:03PM

I need to normalize a mysql table that has 500 plus fields,and 300 plus records so would like to run a sql statement to extract specific columns of data from this table and create then put it into a new table,

current table name stockvalving
fields to be copied, record_id fcd1qty fcd2qty fcd3qty
data 1 4 3 6

new table name stockvalvingqty

field record_id qty fcdnum
1 4 1
1 3 2
1 6 3


this is just a small number of the fields that need to be moved

Thanks
Rob

Options: Reply• Quote


Subject
Views
Written By
Posted
57795
April 21, 2005 01:25AM
29451
April 23, 2005 11:23PM
26071
April 24, 2005 11:32PM
43332
May 12, 2005 05:26AM
25219
November 21, 2005 10:16AM
18595
October 09, 2006 01:46AM
Re: Transpose row into column
21667
January 04, 2007 05:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.