472,121 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

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:

SELECT ISBN,TITLE FROM BOOKS ON
("123243434X","4352542555",4242343241")

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
error.
Jul 19 '05 #1
0 934

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 R. Tarazi | 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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.