Steps to become more agile with Sql development
In this series of posts I am going to talk about what it is we need to do, as Sql...
2015-02-12
50 reads
In this series of posts I am going to talk about what it is we need to do, as Sql...
2015-02-12
50 reads
I’ve been using tSQLt a bit to do some testing and one of the things I’ve tested is standards for...
2015-02-27 (first published: 2015-02-12)
8,021 reads
We’re being told over and over that “throwing hardware at the problem” is not the correct solution for performance problems...
2015-02-24 (first published: 2015-02-12)
8,162 reads
When I decided on security as my topic for February’s T-SQL Tuesday blog party my thought was that security was...
2015-02-12
925 reads
In this series of blog posts, I am talking about how to use agile or modern development practices to help...
2015-02-12
911 reads
NOTE: THIS WAS WRITTEN IN 2015, it is now 2020 - that is 5 years so please consider this a historical artifact that is probably out of date. In...
2015-02-12
13 reads
In this series of blog posts, I am talking about how to use agile or modern development practices to help...
2015-02-12
56 reads
In this series of blog posts, I am talking about how to use agile or modern development practices to help...
2015-02-12
45 reads
One of the good sentence I remember “When someone has teeth he/she is not having nuts and when someone has...
2015-02-12
372 reads
This months T-SQL Tuesday is hosted by none other than Kenneth Fisher (B|T). His topic for this month revolves around...
2015-02-12
572 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