SQL Server's CHOOSE Function

preview_player
Показать описание
In this episode we look at SQL Server's CHOOSE function and how using it compares to a table-based lookup.

Read the full post with examples:

Follow me on Twitter:
Рекомендации по теме
Комментарии
Автор

This is the sort of thing you see in obscure code that you didn't write that you're asked to support. It's not immediately obvious from the syntax what it does either. Great vid again!

harbor.boundary.flight
Автор

Bert, Wasn't aware of the Choose Function either. Great explanations and examples. Thank you !

sql
Автор

First off, thanks for all the great videos and content. I've recently started catching up on your full backlog and gotten a few others to start watching your stuff as well.

A few months ago I stumbled on a list of SQL Server functions like this that were added to make conversion from MS Access easier. One that I use a ton is "IIF", but a video of other syntactical sugar functions like IIF/NULLIF might be pretty interesting to a lot of people, like me. Thanks again for all the great content.

ChaosTheory
Автор

Seems like a lot of us didn't know about CHOOSE (in TSQL) - I use it a lot in Reporting Services, where we have dynamic content formatting (you can't create shared in-memory tables in SSRS, so we use CSV strings and parameters to achieve the same thing).

But useful to know, thanks for the vid... In that vein, maybe a few episodes re the other tech in the SQL stack (SSRS, SSAS, SSIS)?

Good luck with the flooded basement!!

Zanoni
Автор

Never seen this function before, thank you for sharing this!

Reitseschaatser
Автор

Just recently saw this function also. I thought it was cute but so far no need to use it in my daily developing. Great episode!

TheDroc