27 Mar 2007 at 15:37 #1 Stelly Stelly 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
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
27 Mar 2007 at 15:48 #2 Stelly Stelly Don OP Joined 5 Oct 2005 Posts 11,239 Location Liverpool 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
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
27 Mar 2007 at 15:51 #3 MagicalTrevor MagicalTrevor Associate Joined 2 Dec 2004 Posts 314 Location Parallel Dimension You've got no way of joining the two tables together EDIT: Looks like you've solved it