Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Produce a data exception report

Status
Not open for further replies.

robbwalsh

MIS
Dec 18, 2001
7
0
0
GB
Scenario: I have 3 tables for this data exception report that I care about -

Table Fields
User UserID, UserName ...
UserSupportGroup UserSupportGroupID, UserID, SupportGroupID ...
SupportGroup SupportGroupID, SupportGroupName ...

UserSupportGroup is a junction table and allows many:many.

I want to be able to produce a result set where a supportgroup exists with duplicate users. The supportgroup can have a different name, but the user list must be an exact match. This will be for SQL Server 2000
 
RE: "what columns would you like to see in the result set?"

I intend to use a stored procedure, and perhaps I would insert the results into a new table. Ideally the resultant report would state:

(pseudocode)
"SupportGroup: " + SupportGroupNameMatch + " has the same users as SupportGroup: + SupportGroupNameMatchPair
 
at this point i would suggest you read those two articles that dieter posted

wouldn't want to re-invent the wheel, eh ;-)

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top