Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a new row

Status
Not open for further replies.

eislander

Programmer
Sep 27, 2001
23
US
Hopefully one of you can help me with this problem. I need a query to take a table like:

Field1 Field2
------ ------
A B
A C
A D
E F
E G

and output:

Field1 Field2
------ ------
A A
A B
A C
A D
E E
E F
E G


Any suggestions?

Thanks to anyone who posts.
 
Something like this ?
SELECT Field1, Field2 FROM theTable
UNION
SELECT Field1, Field1 FROM theTable
;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top