Ah....
Never mind, i got it. I did some stupid stuff, but figured it out. Here's
the working query:
SELECT title, authorName, journalName, journalPages, aname, tname,
avg(ranking)
FROM publications LEFT OUTER JOIN ranking ON (publications.pubID =
ranking.pubID),
area, topic, pubTopicInt
WHERE publications.areaID = area.areaID
AND
publications.pubID = pubTopicInt.pubID
AND
topic.topicID = pubTopicInt.topicID
AND
publications.pubID = 7
GROUP BY (publications.pubID);
Thanks for your patience.
Desmond
>From: "Desmond Lee" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: help with syntax of left outer join
>Date: Tue, 13 Aug 2002 14:34:06 -0700
>
>Hi there
>
>
>I want to do a left outer join but i also have a bunch of where conditions
>in my sql statment that i need. Can anyone help me out:
>
> SELECT title, authorName, journalName, journalPages, aname, tname,
>avg(ranking)
> FROM publications, area, topic, pubTopicInt,
> LEFT OUTER JOIN ranking publications.pubID = ranking.pubID
> WHERE publications.areaID = area.areaID
> AND
> publications.pubID = pubTopicInt.pubID
> AND
> topic.topicID = pubTopicInt.topicID
> AND
> publications.pubID = ranking.pubID
> AND
> publications.pubID = 3
> GROUP BY (publications.pubID);
>
>I look at the mysql documentation, but i couldn't really understand their
>examples when they had additional where cluases.
>
>THanks
>
>
>Desmond
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>---------------------------------------------------------------------
>Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
>To request this thread, e-mail <[EMAIL PROTECTED]>
>To unsubscribe, e-mail
><[EMAIL PROTECTED]>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php