Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 EXCEPT clause

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-05-02 : 09:17:47
will writes "Im trying to write a procedure that does something like..

SELECT COUNT(M_Name) AS TotalName from Members
where M_Name = a EXCEPT
SELECT [Members.Member_id] from Members
WHERE [Members.Member_id] = n

..if you see what I mean! (i.e only pick duplicate Names that doesnt match the name that has the id of n)

I havent ever seen a example of EXCEPT and Im not doing too well in getting this to work. Any suggestions?
cheers

w"
   

- Advertisement -