Marking Up Books
I like reading and while I read more on an e-reader than I used to, I still prefer the printed...
2012-11-05
846 reads
I like reading and while I read more on an e-reader than I used to, I still prefer the printed...
2012-11-05
846 reads
I started this trip with a 4:30 am wake up on Sunday to be at the airport for the direct...
2012-11-05
840 reads
If you’re in Seattle for the PASS Summit and would like a chance to meet some new people in a...
2012-11-05
833 reads
I tend to take it for granted and I imagine most of you do as well, but not everyone is...
2012-11-01
817 reads
I’ve been living with my Mac Air for a few weeks now, thought I’d share some quick thoughts:
I miss the...
2012-10-24
818 reads
Congratulations to Wendy Pastrick, James Rowland-Jones, and Sri Sridharan on winning a two year term on the PASS Board of...
2012-10-17
810 reads
We just crossed the 100 mark for registrants for our Monday Night Networking Party and still room for more. If...
2012-10-12 (first published: 2012-10-09)
1,819 reads
My friend Richard Salogub is heading up this years Give Camp Orlando, an effort to link developers and IT professionals...
2012-10-08
776 reads
I was just answering an email and realized I’m behind on posting on a few topics, one of them the...
2012-10-08
934 reads
It’s that time of year where we get to vote for the three best candidates to serve a two year...
2012-09-28
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