Jun 29, 2007 #1 r0brh0des Programmer Sep 1, 2006 6 US I am looking for a way to take the columns for an id to separate rows. Ex. Existing Table: ID COL1 COL2 COL3 1 a b c 2 d e f Desired Query Result: ID COL 1 a 1 b 1 c 2 d 2 e 2 f Thanks!
I am looking for a way to take the columns for an id to separate rows. Ex. Existing Table: ID COL1 COL2 COL3 1 a b c 2 d e f Desired Query Result: ID COL 1 a 1 b 1 c 2 d 2 e 2 f Thanks!
Jun 29, 2007 #2 gmmastros Programmer Feb 15, 2005 14,905 US Code: Select ID, Col1 From Table Union All Select ID, Col2 From Table Union All Select ID, Col3 From Table -George "the screen with the little boxes in the window." - Moron Upvote 0 Downvote
Code: Select ID, Col1 From Table Union All Select ID, Col2 From Table Union All Select ID, Col3 From Table -George "the screen with the little boxes in the window." - Moron