The CHOOSE function, which is available in SQL Server 2012, will return the item at the specified index from the list of values which are available. In this example we have 3 values and we are asking to select the third value in the list which is "SQL Server 2012".
SELECT 'Programming Language' = CHOOSE(3, 'C#', 'Java','Python')
Comments
Post a Comment