I'm trying to mark these deliveries orders if they were 'First', 'Second', 'Third' etc. out of 'Single-Route', 'Double-Route' or 'Triple-Route' using "Case" statement. Please help!
0
Try this:
Select case [Sort in Order]
when 'first' then 'Single-Route'
when 'second' then 'Double-Route'
when 'Third' then 'Triple-Route'
END as [New column alias] from [TableName]
Case
statements in SQL Server; there is only theCASE
expression. – Larnu Nov 14 at 14:56