469,106 Members | 2,135 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,106 developers. It's quick & easy.

Left join on my own list, don't know the syntax

I have a BOOKS table with the columns ISBN and TITLE. I have a list of
5 isbn-numbers and I would like to find out their titles if they are
in the database, or null if they are not. In other words, I would like
to do a LEFT JOIN (or is it RIGHT JOIN?) like this:


the result could be

123243434X | "book1"
4352542555 | NULL
4242343241 | "book2"

I'm not sure of how to create my sql syntax. The above gives me an
Jul 19 '05 #1
0 1027

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Leif Wessman | last post: by
2 posts views Thread by Scott Snella | last post: by
3 posts views Thread by Ian Boyd | last post: by
5 posts views Thread by Dev | last post: by
3 posts views Thread by rrstudio2 | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.