Click here to Skip to main content
15,905,877 members
Articles / Database Development / SQL Server

CASE/WHEN return type

13 Dec 2010CPOL 713   1
When using SQL Server you can useCase When @sortby = 'A1' then 1 When @sortby = 'B1' then 2 When @sortby = 'Date' then 3End
Only logged in members can view this content

Please go to the SQL Server Table of Contents to view the list of available articles in this section.