Monday, June 6, 2016

CHOOSE Keyword In SQL Server

//CHOOSE In SQL Server
SELECT CHOOSE(2, '1','2', 'Unknown')
AS [No];

O/P= 2
==========================================
SELECT CHOOSE(4,'1','2','Unknown') AS [x];

O/P= NULL

No comments: