Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Join syntax question

Join syntax question

From: danlamb <lamb.dan_at_gmail.com>
Date: 15 Jun 2005 05:13:23 -0700
Message-ID: <1118837603.072821.131140@g14g2000cwa.googlegroups.com>


Consider this simplified table structure:

[Books]

ID
TITLE
[Authors]

ID
BOOKID
NAME The problem: Books may have no authors, one author or mulitple authors. I need a query that shows a list of books and only one author (doesn't matter which one) or NULL if no authors exist, each book can only be listed once.

Any input would be greatly appreciated.

Thanks,
Dan Lamb
lamb dot dan at gmail dot com Received on Wed Jun 15 2005 - 07:13:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US