RE: [SQL] join if there, blank if not

2000-07-13 Thread Henry Lafleur
, 96 MB of RAM, and a slow IDE HD.) Henry -Original Message- From: Patrick Jacquot [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 13, 2000 5:59 AM To: [EMAIL PROTECTED] Subject: Re: [SQL] join if there, blank if not Henry Lafleur wrote: > Jacques, > > The problem with using th

Re: [SQL] join if there, blank if not

2000-07-13 Thread Patrick Jacquot
t; Has anyone examined this problem? > > Thanks, > > Henry > > -Original Message----- > From: Jacques Williams [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 12, 2000 9:41 AM > To: Gary Stainburn > Cc: [EMAIL PROTECTED] > Subject: Re: [SQL] join if there,

Antw: RE: [SQL] join if there, blank if not

2000-07-13 Thread Gerhard Dieringer
Henry Lafleur wrote: > ... > What I have always had trouble with, though, is if you have multiple fields > for a primary key. For example, if a customer master table also had ship-to > locations as the key and you wanted to get all customers and any orders for > that customer, in rough ANSI SQL

RE: [SQL] join if there, blank if not

2000-07-12 Thread Henry Lafleur
work if we continue. But how efficiently does this work? Has anyone examined this problem? Thanks, Henry -Original Message- From: Jacques Williams [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 12, 2000 9:41 AM To: Gary Stainburn Cc: [EMAIL PROTECTED] Subject: Re: [SQL] join if there

Re: [SQL] join if there, blank if not

2000-07-12 Thread Jacques Williams
Gary, What you want here is an outer join. The syntax would look something like this: select c.cdate, c.ctime, c.cextn, c.cnumber, n.ndesc from calls c, numbers n where c.cnumber=n.nnumber union all select null as cdate, null as cextn, null as cnumber, n.nnumber, n.ndesc from numbers; (I haven'

[SQL] join if there, blank if not

2000-07-12 Thread Gary Stainburn
Hi all, I just can't get my head round this one so I hope one of you can. I've got two tables, one holding phone calls, and another holding phone numbers. I want to do a select where if the number in the calls table exists in the numbers table, the description is included otherwise the descri