Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This should be easy but...
Message
From
02/05/2001 21:35:26
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00502830
Message ID:
00502840
Views:
19
You want the ID of all vendors who service multiple states?

Assuming two tables: vendors and VendorsInStates

SELECT VendorID
FROM VendorInStates
GROUP BY VendorID
HAVING COUNT(*) > 1

If this isn't close, post the DDL.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform