I'm pulling data back from SQL to ASP at the moment via two recordsets but I'm having trouble paging with two recordsets so am wondering if there's a way to combine the SQL as they look at the same things anyway.
It all pivots around a 'ListingType' column that is either 1 or 2. When the results are back the 2's MUST be BEFORE the 1's. Easy enough. However, all the 2's must be in a random order as must the 1's. I can do it just pulling one or the other back using NEWID() but don't know how to make 2's come before 1's and random?
I think that makes sense??
It all pivots around a 'ListingType' column that is either 1 or 2. When the results are back the 2's MUST be BEFORE the 1's. Easy enough. However, all the 2's must be in a random order as must the 1's. I can do it just pulling one or the other back using NEWID() but don't know how to make 2's come before 1's and random?
I think that makes sense??