SQL Query Add an Alternate Blank Records
问题 I am using following Query to Display Records from SQL SERVER select * from orders Currently this query shows all 100 records in database, what i need is instead of 100 it should show 200 records ( so alternate blank records is fine ) It is possible can it be done ? 回答1: -- sample table declare @Order table ( orderid int, qty int ) -- add some data insert into @Order select 1, 10 union all select 2, 20 union all select 3, 30 -- cross join the query against two rows select case D.N when 1 then