SQL Case statement Get link Facebook X Pinterest Email Other Apps madeinstein , January 29, 2009 CASE Column1 WHEN 1 THEN Column2*1 WHEN 2 THEN Column2*2 ELSE Column2 END as MyColumn, -- or CASE WHEN max(Column1) = 1 THEN Column2*1 WHEN max(Column1) = 2 THEN Column2*2 ELSE Column2 END as MyColumn, Comments
Comments
Post a Comment