Hi all.
I want to select at least 20 records from a table into a new table based on a number 1 to 20.
select * into blah from foo where fubar = '1'
how do i add 1 to 20 into that statement?
edit:
select * into blah from foo where fubar = '1' and where fubar = '2' and where fubar = '3'
Sorry. Let me see if i can make it more clear. Basically i want to select 20 record based on fubar = 1 to 20. I tried to use "and where" but i get a syntax error.
eidt: what if fubar is nvarchar(11)