Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
quote:Originally posted by debushow the every match 'ger' has goal matchid ,match dateand scroced by join codeindnandini
Flowing Fount of Yak Knowledge
FROM bookjobs b
JOIN (SELECT job_id, COUNT(DISTINCT vendor_id) cntVendors
GROUP BY job_id
HAVING COUNT(DISTINCT vendor_id) > 1) j
ON b.job_id = j.job_id