SQL inner join statement

Don
Joined
5 Oct 2005
Posts
11,239
Location
Liverpool
Hey All,

Have this statement but can't find for the life of my whats wrong with it!

SELECT Users.UserName, OldComp.DateStamp
FROM Users, OldComp
WHERE OldComp.CompID = @PCID

Stelly
 
It is solved after having a brew and chilling... missed this...

SELECT Users.UserName, OldComp.DateStamp
FROM Users, OldComp
WHERE OldComp.CompID = @PCID
AND OldComp.UserID = Users.UserID
 
Back
Top Bottom