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
 Transact-SQL (2000)
 please make this querry work

Author  Topic 

dasu
Posting Yak Master

104 Posts

Posted - 2004-10-05 : 09:01:16
USE PUBS
SELECT a.au_fname, a.au_lname, p.pub_name
FROM SYSOBJECTS, authors a LEFT OUTER JOIN publishers p
ON a.city = p.city and SYSOBJECTS.ID=1

dev45
Yak Posting Veteran

54 Posts

Posted - 2004-10-05 : 09:04:57
USE PUBS
SELECT a.au_fname, a.au_lname, p.pub_name
FROM SYSOBJECTS , authors a LEFT OUTER JOIN publishers p
ON a.city = p.city
where SYSOBJECTS.ID=1

??
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2004-10-05 : 09:56:22
why do you have sysobjects in there? what are you trying to do?

- Jeff
Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2004-10-06 : 05:25:44
"FROM SYSOBJECTS , authors a LEFT OUTER JOIN publishers p"
you're mixing syntax statements/constructs.

you can do
"FROM SYSOBJECTS , authors a, publishers p"
or
"FROM SYSOBJECTS c
LEFT JOIN authors a ON 1=1
LEFT OUTER JOIN publishers p ON a.city = p.city"


I agree with Jeff however....why SYSOBJECTS?????
Go to Top of Page
   

- Advertisement -