2012-09-04
675 reads
2012-09-04
675 reads
PASS SQLSaturday is a training event for SQL Server professionals and those wanting to learn about SQL Server. Please note that in...
2012-09-04
641 reads
PASS DBA Fundamentals Virtual Chapter
fundamentals.sqlpass.org / Twitter: @DBAFundVC
September 4, 2012 - 11:00 a.m. CST
Introduction to SQL Server Service Broker
Speaker: Adam Belebczuk
In this...
2012-09-04
1,072 reads
This month Kevin Kline will be presenting "End to End Troubleshooting" at the Boulder, Colorado Springs, and Denver SQL Meetings
Summary:...
2012-08-07
648 reads
We are starting our free monthly webinars with 'What's new in Reporting Services 2012' on Wednesday August 8, 2012 at 12...
2012-08-06
1,331 reads
PASS SQLSaturday is a training event for SQL Server professionals and those wanting to learn about SQL Server. Please note that...
2012-06-21
766 reads
PASS Summit is the world's largest and most intensive technical training conference for Microsoft SQL Server community for the SQL...
2012-06-21
640 reads
Date: Thursday, July 10
Time: 11:00 a.m. - 12:00 p.m. Central Time
Virtual Chapter: DBA Fundamentals
Event URL: http://www.livemeeting.com/cc/usergroups/join (Meeting ID TW8M35, Entry Code...
2012-06-21
769 reads
All ColoradoSQL user group meetings start at 5:30 p.m. and provide food and refreshments. There is no cost to attend...
2012-06-18
775 reads
All ColoradoSQL user group meetings start at 5:30 p.m. and provide food and refreshments. There is no cost to attend...
2012-04-17
843 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