IF in SQL Select Statement - TechRepublic
General discussion
March 28, 2003 at 12:03 AM
gregory51

IF in SQL Select Statement

by gregory51 . Updated 23 years, 3 months ago

Is there a way to construct a select statement that will insert one of two different columns depending on the value in one of those columns? For example, in a single output column, for each record I want to show the value from column A unless it is Null. If column A is Null, I want to show the value from column B. Is this possible?
Thanks
Greg

This discussion is locked

All Comments