Re: Select with an IF statements

2004-10-28 Thread Jay Blanchard
[snip] That's up to you of course. Personally, I think some things are better handled by the database and some are better handled by the programming language. Things like conditional logic tend to be best handled by the programming language in my view. Your mileage may vary ;-) [/snip] AT the risk

Re: Select with an IF statements

2004-10-27 Thread Rhino
e pictures and music programs to create music. Rhino - Original Message - From: "Luke Venediger" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 27, 2004 5:47 PM Subject: Re: Select with an IF statem

Re: Select with an IF statements

2004-10-27 Thread Luke Venediger
]> wrote: > > - Original Message - > From: "Luke Venediger" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, October 27, 2004 4:58 PM > Subject: Select with an IF statements > > > Hi, > > > > I'm t

Re: Select with an IF statements

2004-10-27 Thread Luke Venediger
Thanks Paul! Luke Venediger. On Wed, 27 Oct 2004 16:17:51 -0500, Paul DuBois <[EMAIL PROTECTED]> wrote: > At 22:58 +0200 10/27/04, Luke Venediger wrote: > >Hi, > > > >I'm trying to do the following: > > > >SELECT > > IF((ProductStatus IS NOT NULL), "Available", "Not Available") as > >ProductSt

Re: Select with an IF statements

2004-10-27 Thread Rhino
- Original Message - From: "Luke Venediger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 27, 2004 4:58 PM Subject: Select with an IF statements > Hi, > > I'm trying to do the following: > > SELECT > IF((ProductSta

Re: Select with an IF statements

2004-10-27 Thread Paul DuBois
At 22:58 +0200 10/27/04, Luke Venediger wrote: Hi, I'm trying to do the following: SELECT IF((ProductStatus IS NOT NULL), "Available", "Not Available") as ProductStatus FROM tb_Product WHERE ProductName = "MyProduct"; It works fine if the ProductName "MyProduct" works, and returns "Availabl

Select with an IF statements

2004-10-27 Thread Luke Venediger
Hi, I'm trying to do the following: SELECT IF((ProductStatus IS NOT NULL), "Available", "Not Available") as ProductStatus FROM tb_Product WHERE ProductName = "MyProduct"; It works fine if the ProductName "MyProduct" works, and returns "Available". However, if the product name doesn't work