Received: from candle.pha.pa.us (pgman@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id UAA36971 for ; Thu, 30 Mar 2000 20:44:49 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id UAA03317; Thu, 30 Mar 2000 20:43:00 -0500 (EST) From: Bruce Momjian Message-Id: <200003310143.UAA03317@candle.pha.pa.us> Subject: Re: isnull In-Reply-To: <38E3DE24.72ACFA25@selectacast.net> from Joseph Shraibman at "Mar 30, 2000 06:07:16 pm" To: Joseph Shraibman Date: Thu, 30 Mar 2000 20:43:00 -0500 (EST) CC: jhunt@chac.qld.edu.au, "pgsql-sql@postgresql.org" X-Mailer: ELM [version 2.4ME+ PL72 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200003/11 > Julie Hunt wrote: > > > Yes, you're right. I remember attempting to do an outer left join using the > > nullif but without success so I used the case function instead with success. > > Maybe someone else knows more about nullif and why it doesn't seem to work. > > > > Regards, > > Julie > > > > I've actually taken a closer look at the web page and not only did the name change, > but I now notice that they change what it is supposed to do as well. It does work > as currently defined, but I needed something that does what the original > documentation said: > > IFNULL(input,non-NULL substitute) > return second argument if first is NULL > Example: IFNULL(c1, 'N/A') > New function is COALESCE. It returns the first non-null argument. -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026