Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Everything’s a CASE statement! #28

Open
utterances-bot opened this issue Jan 2, 2025 · 1 comment
Open

Everything’s a CASE statement! #28

utterances-bot opened this issue Jan 2, 2025 · 1 comment

Comments

@utterances-bot
Copy link

Everything’s a CASE statement! | Chad’s Blog

A lot of people may not realize that some of our favorite T-SQL functions are really just a little syntactic sugar underneath.

https://chadbaldwin.net/2024/07/30/everythings-a-case-statement.html

Copy link

Thank-you for an interesting and detailed post!
One additional thing related to ISNULL. If your either item passed in is defined as NOT NULL, that property gets returned in the metadata for the result set, but again that optimisation is missing from COALESCE, CASE and IIF (you can use sp_describe_first_result_set to show the properties).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants