mkrausnick
Programmer
Is there a one-statement way to code this T-SQL:
In VFP I would write
or
IF/ELSE seems clunky to me for such a simple statement. Is there another way?
Mike Krausnick
Dublin, California
Code:
IF @dBeginDate > '11-01-2007 00:00'
SET @PeriodStart = @dBeginDate
ELSE
SET @PeriodStart = '11-01-2007 00:00'
In VFP I would write
Code:
dPeriodStart=iif(dBeginDate > {^2007-11-01}, dBeginDate , {^2007-11-01})
Code:
dPeriodStart = max(dBeginDate , {^2007-11-01})
IF/ELSE seems clunky to me for such a simple statement. Is there another way?
Mike Krausnick
Dublin, California