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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select Count (Distinct....)

Status
Not open for further replies.

goterps1

Technical User
Sep 21, 2006
13
US
I'm recieving a missing operator error on the select statment when attempting to run the following sql. Can you help?

SELECT COUNT(DISTINCT [Fund 49].SSN) AS Expr1 INTO [Matching 49]
FROM [Fund 49], [Fund 83]
WHERE ((([Fund 49].SSN)=[Fund 83].SSN));
 
Is this for an Access database. This forum is specifically for Microsoft SQL Server.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Try this:

SELECT COUNT(DISTINCT ([Fund 49].SSN)) AS Expr1 INTO [Matching 49]
FROM [Fund 49], [Fund 83]
WHERE [Fund 49].SSN)=[Fund 83].SSN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top