Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-2006, 03:10 PM
Ignoramus23298
 
Posts: n/a
Default Outer join?



Sometimes I need to make queries and join tables, knowing that the
other table rows are not always available.

Example:

I do

SELECT question.author, ..., textbooks.picture
WHERE textbooks.id = questions.tb_id

the problem is that sometimes questions.tb_id is NULL (textbook was
not supplied in question), and what I want to have for
textbook.picture is a NULL. But I want the row returned if it exists
in questions.

How would I do it?

o

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:06 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.