How to include an IF() statement in SQL?
From: Troy Perchotte <max_at_headroom.com>
Date: 1998/09/01
Message-ID: <35EC91AF.40041E9D_at_headroom.com>#1/1
Date: 1998/09/01
Message-ID: <35EC91AF.40041E9D_at_headroom.com>#1/1
[Quoted] [Quoted] How do I include a condition within a select statement? [Quoted] [Quoted] Something like the following (only one that works):
select if(customers.custid=customers.parentid,'',customers.name) as parent_name from customers;
Troy Perchotte Received on Tue Sep 01 1998 - 00:00:00 CEST