tSQLt Course
In the last half of 2017, I decided to run a tSQLt course and went down the route of putting...
2018-02-16 (first published: 2018-02-06)
3,048 reads
In the last half of 2017, I decided to run a tSQLt course and went down the route of putting...
2018-02-16 (first published: 2018-02-06)
3,048 reads
In the last half of 2017, I decided to run a tSQLt course and went down the route of putting together a free 12-week email course. The intention was...
2018-02-06
13 reads
In the last half of 2017, I decided to run a tSQLt course and went down the route of putting...
2018-02-06
244 reads
In the last half of 2017, I decided to run a tSQLt course and went down the route of putting...
2018-02-06
298 reads
Have you ever used @@options? I haven’t typically needed this, but there are times that you might wonder what options...
2018-02-15 (first published: 2018-02-06)
2,194 reads
In this podcast I talk with Mike Rabinovici of Dimodelo Solutions about data being the new currency, the importance of showing...
2018-02-06
60 reads
In this podcast I talk with Mike Rabinovici of Dimodelo Solutions about data being the new currency, the importance of showing...
2018-02-06
511 reads
I am so excited, I was selected to speak at SQL Saturday Richmond on March 24, 2018, in Richmond, Virginia.
SQL...
2018-02-06
268 reads
I can finally breath a sigh of relief, my first time of presenting two sessions back to back is finally...
2018-02-06
260 reads
Waiting tasks quickly shows you where to look for the bottlenecks. This is only one of the many times that I...
2018-02-14 (first published: 2018-02-06)
2,865 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