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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate pkey in Union query

Status
Not open for further replies.

millrat

Technical User
Dec 23, 2003
98
US
Hi all,

If I have these fields in a table

pkey fld1 fld2 fld3
1 A B C

How to create union query to give

fld1 fld2
1 A
1 B
1 C

Cheers,
millrat
 
How about:
Select pkey, fld1 From tblTable
Union Select pkey, fld2 From tblTable
Union Select pkey, fld3 From tblTable
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top