Quote:
|
..... based on multiple single column values.
|
I couldn't understand well this clause.
Quote:
|
IF COLUMN1='P' THEN update stats COLUMN2 AS 'W' Else update COLUMN2 AS 'S';
|
This would be the following statement.
Code:
UPDATE .....
SET column2
= CASE column1
WHEN 'P' THEN
'W'
ELSE 'S'
END
WHERE .....
;