T-SQL Tuesday #62 - Wrap Up!
This month’s T-SQL
Tuesday #62, the first of 2015, hosted by yours truly, (invitation
to Healthy SQL here), asked that you all...
2015-02-06 (first published: 2015-01-29)
7,500 reads
This month’s T-SQL
Tuesday #62, the first of 2015, hosted by yours truly, (invitation
to Healthy SQL here), asked that you all...
2015-02-06 (first published: 2015-01-29)
7,500 reads
I’ve created a series of five tutorial videos for a set of workshops I’ll be doing at several events this...
2015-01-29
673 reads
I’ve created a series of five tutorial videos for a set of workshops I’ll be doing at several events this...
2015-01-29
1,157 reads
I’ve used placeholders to ensure I don’t run out of space on my machines. That’s worked well, and usually I...
2015-01-28
1,268 reads
Never forget, we’re making buggy whips. And everybody we know drives little buggies and they need our buggy whips. We’ve...
2015-01-28
1,086 reads
Back in December I had the thought that it would be fun to do an email interview with someone. As...
2015-02-06 (first published: 2015-01-28)
6,836 reads
I had the pleasure to speak at SQL Saturday 360 in Israel. It was such a great event! We had...
2015-01-28
614 reads
I was recently working on a page that does an AJAX post to an MVC controller passing quite a lot...
2015-01-28
270 reads
Some exciting announcements were made today about the new Power BI cloud-based business analytics service. Today Power BI is an...
2015-01-28
587 reads
TweetG’day,
Recently I’ve become quite interested in the latest incarnation of Azure SQL Database.
For those that are unaware of some of...
2015-02-05 (first published: 2015-01-27)
6,545 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