-- if a user sold less than two items, he/she will have no data from tb1, and thus will be assigned 'no' ...
-- so in a group with same r2-4, the smallest date is start date and the largest date is end date ...
Ok, I need a hand with my general SQL Theory here. (Hey, the more you teach me, the less questions I'll ask going forward!) <BR>Anyway, I am trying to put together a report.<BR>I can pull the data ...
I'm trying to assign rows in a table to a random variable entirely in Transact SQL (This is MS SQL Server 2000, sp3). I've got it working perfectly except I can't use a variable inside my subquery ...
Certains résultats ont été masqués, car ils peuvent vous être inaccessibles.
Afficher les résultats inaccessibles