Cheers all.
Yes, I already have the query but like Rich says, finding a tool powerful enough to run it is a problem. This one isn't complex, it's just manipulating a lot of data, and is in itself a very long series of statements. Optimisation isn't the issue.
I'll check out the tools you mentioned. DB Designer sounds interesting too.
While we're on the topic, can anyone translate this problem into SQL.
I have one table, products and categories with a many to many relationship. I want to return one row per product, and it must also return one of the categories too. I don't care which category, but it must be in the result set.
SELECT DISTINCT won't do it, if a product has 3 categories it will return 3 rows because category is in the collection of fields.
SELECT TOP * wont do it, it works on the full resultset, not an a row basis.
But maybe there is a way to combine the 2, reduce through a join, or some damn thing that means I don't have to script the results!
BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply