The Story of the TV Stand
We all have those things that happen at work that somehow turn into something other than expected, and sometimes in...
2009-01-15
656 reads
We all have those things that happen at work that somehow turn into something other than expected, and sometimes in...
2009-01-15
656 reads
It's been about two weeks since I posted PASS Update #1, so time for another update on my activities as...
2009-01-14
732 reads
There are times that you do not want indexes to be updated and used. Brian Knight shows how you can accomplish this with a new SQL School video.
2009-01-13
3,289 reads
One of my goals for the year is to update my blog roll some and try to recognize new/interesting bloggers....
2009-01-13
656 reads
I'm a technology guy, but one lesson I've learned is that not all solutions can be solved by throwing technology...
2009-01-12
725 reads
I decided to attend to see how the group was doing and learn a little more about Dot Net Nuke...
2009-01-11
635 reads
I ran across the AlphaSmart Neo in The Writer magazine. It's a $219 "laptop" that is for writing only, basically...
2009-01-08
678 reads
I've been meaning to do this for a year, finally caught up with Eric Johnson of Consortio Services to do...
2009-01-08
723 reads
Yesterday I started discussing networking and the idea that it's time invested with no guarantee of a return on that...
2009-01-07
754 reads
This post, and the next couple in the series (which may not be this week) are me talking through what...
2009-01-06
667 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