Hello,
I need some assistance with my IF Statement. Mostly familar with ANSI IFs. I understand SQL Server syntax is a bit different, but have little experience with it. This should be very simple for one of you.
My sample:
SELECT * FROM TBL1
IF PMTHD = 'BOFA-VISA'
BEGIN
UPDATE TBL1
SET PMTHD = 'VISA-BOFA'
END
ELSE PMTHD
Also, if anyone can refer a good book for someone looking to tweek their syntax so that it conforms to MS SQL Server.
David
I need some assistance with my IF Statement. Mostly familar with ANSI IFs. I understand SQL Server syntax is a bit different, but have little experience with it. This should be very simple for one of you.
My sample:
SELECT * FROM TBL1
IF PMTHD = 'BOFA-VISA'
BEGIN
UPDATE TBL1
SET PMTHD = 'VISA-BOFA'
END
ELSE PMTHD
Also, if anyone can refer a good book for someone looking to tweek their syntax so that it conforms to MS SQL Server.
David