Watch The EngineerGuy–Great for Kids
Great explanation of some interesting engineering topics at http://www.engineerguy.com/.
2015-05-11
317 reads
Great explanation of some interesting engineering topics at http://www.engineerguy.com/.
2015-05-11
317 reads
I tend to write my queries using LEFT JOIN. Why? Because logically I see it in my head like this:
Give...
2015-05-20 (first published: 2015-05-11)
7,096 reads
This is a basic introductory post about Microsoft’s new product: Azure DocumentDB, and how it compares to SQL Server.
What is...
2015-05-11
1,295 reads
Question : Database snapshot captures only data changes or it will also save real database from DDL changes (like table structure,...
2015-05-19 (first published: 2015-05-11)
5,627 reads
Here's a new thing to be scared about in the night, as if you weren't already terrified of floats after...
2015-05-18 (first published: 2015-05-11)
681 reads
Last week during Ignite, Microsoft CEO Satya Nadella announced the next version(Till then it was called as SQL vNext) of...
2015-05-10
1,018 reads
When you create a database driven website, you actually write SQL scripts to insert data into the database. You also...
2015-05-10
752 reads
There are two flavors of SQL Server in Azure: one is the traditional SQL Server platform hosted in Azure virtual machines,...
2015-05-09
990 reads
Only my second SQL Saturday of the year (wow), but SQL Saturday #393 is next week in Redmond, WA. This...
2015-05-08
757 reads
All you who wants to pursue professional life as SQL SERVER DBA, its always hard to crack the interview . But...
2015-05-08
1,516 reads
By Steve Jones
This is timely, as I’m currently on a boat in the Adriatic taking a...
You can find the slides and SQL scripts for my session “Spice up your...
By SQLPals
How to Clear the SSMS Cache (SSMS 21 and Later) Updated...
Comments posted to this topic are about the item Using CHOOSE()
Comments posted to this topic are about the item Re-Seeding a Broken Log Shipping...
Comments posted to this topic are about the item The DBA is Dead! Long...
We have this code that sets some status values and then queries them using the CHOOSE() function in SQL Server 2025.
CREATE TABLE Status
(
StatusID INT,
StatusDescription VARCHAR(20)
);
GO
INSERT dbo.Status
(
StatusID,
StatusDescription
)
VALUES
(0, 'Uncategorized'),
(1, 'Active'),
(2, 'Inactive'),
(3, 'Temp');
GO
SELECT CHOOSE(StatusID, 'Unknown', 'Active', 'Inactive', 'Temporary')
FROM Status;
When the SELECT runs, what is returned? See possible answers