Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
column1 column2 column3 column4
MR00386 ASM0092 MR00391 MR00392

i want values like this

column1
MR00386
ASM0092
MR00391
MR00392
Posted

Use UNPIVOT[^] - it's at the bottom of the page.
 
Share this answer
 
You can use "UNION".

You select each value by it's criteria and UNION it with a query to the same table with the new criteria.

Just remember: when you create a UNION, all columns returned for each of the queries must be of the same type.

IF . . . you need to allow duplicate results then you may require UNION ALL.

Be cautious about this!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900