MVP Day 1
Actually it wasn't really an official day. I came to Seattle a day early to see the Mariner's play and...
2008-04-14
681 reads
Actually it wasn't really an official day. I came to Seattle a day early to see the Mariner's play and...
2008-04-14
681 reads
It's always good to find a book or two on a subject when you want to be good at something....
2008-04-14
518 reads
Mentoring is something I think a lot of us wish for and that few of us find. Few businesses encourage...
2008-04-13
527 reads
Saw this in the MCP Flash today, if you register to be notified when the exams are live you get...
2008-04-11
334 reads
If you're looking for the Charlotte SQL Server User Group web page, the link on the PASS HQ site is...
2008-04-09
600 reads
If you haven't visited yet, MS Connect replaces the old sqlwish email alias and provides - in theory! - a better way...
2008-04-09
453 reads
Ok, I'm a bit of an ID10T at times.
I've talked about this for months, especially trying to push SP3 for...
2008-04-09
799 reads
Well, it got me at least! Not long ago someone asked me about partitioned views and as I'm apt to...
2008-04-08
421 reads
I made the decision today to start using SQL Server 2008 Management Studio at work to manage my 2000 and...
2008-04-08
822 reads
From the SQLSaturday event site:
AFTER EVENT PARTY ANNOUNCED! Our after event party will be held at 7 Bridges Grille beginning...
2008-04-07
581 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