My Election Questions Mystery Machine
So last year in improved transparency move, the board and the nomination committee began posting the questions the noncom asked...
2011-10-14
865 reads
So last year in improved transparency move, the board and the nomination committee began posting the questions the noncom asked...
2011-10-14
865 reads
This week has been an exciting and memorable week for me. The last PASS Summit I attended was in 2009...
2011-10-14
1,844 reads
As I have announced in my "Advanced SQL Server Troubleshooting" session at SQLPASS
today, you can find here the
slides & samples for...
2011-10-14
785 reads
On Tuesday, October 18, 2011, I will be speaking at the Carolina Technology Conference in Columbia, SC. I'm scheduled for...
2011-10-14
1,410 reads
If you're not familiar with Chotto matte kudasai, it means "A moment, please," in Japanese. The cloud is big news....
2011-10-14
1,212 reads
Jes Borland Hosts the 2011 WIT Luncheon
Click here to watch today’s WIT luncheon live. For information on today’s luncheon and...
2011-10-13
886 reads
Bill Graziano kicked off the event today with the notice of the official “Kilt Day” at the Summit. He also...
2011-10-13
434 reads
The keynote started out with Bill Graziano taking to the stage in a kilt and declaring that the second day...
2011-10-13
1,120 reads
Starting the keynote on Wednesday, Bill Graziano talking about Kilt Day, quite a few of the bloggers wearing kilts (no,...
2011-10-13
602 reads
I’m writing this while I listen to the keynote at the PASS Summit, thinking about some of the things I’ve...
2011-10-13
660 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