M
Mike Thomas
I am migrating date from Access 2000 to SQL Server and am trying to deal
with replacing the IIF with an IF.
In the simplified code below, I am getting an error around the IF statement.
Could someone let me know what's wrong here?
CREATE PROCEDURE _dumptest AS
Select descr,
IF quantity > 1
unitprc
ELSE
0
AS cost
From invcustl
GO
Many thanks
Mike Thomas
with replacing the IIF with an IF.
In the simplified code below, I am getting an error around the IF statement.
Could someone let me know what's wrong here?
CREATE PROCEDURE _dumptest AS
Select descr,
IF quantity > 1
unitprc
ELSE
0
AS cost
From invcustl
GO
Many thanks
Mike Thomas