Reputation: 33
I am using SQL Server 2000. My table looks like this:
stricker nonstricker over status
-----------------------------------------------
sahwag sachin 0.1 out(sahwag)
kohli sachin 0.2 not out
I want the name of the batsman, like this:
------------------
sahwag
sachin
kohli
Upvotes: 1
Views: 64
Reputation: 3720
I think this is what you want. This will get both the strickers and the nonstrickers from the table:
select stricker from myTable
union
select nonstricker from myTable
Upvotes: 3