How to Eliminate Sales Commissions #sales
Three months ago, when the few paper calendars that remain on earth flipped over to 2013, ThoughtWorks, a 2,000-employee software...
2014-02-14
408 reads
Three months ago, when the few paper calendars that remain on earth flipped over to 2013, ThoughtWorks, a 2,000-employee software...
2014-02-14
408 reads
I have one more thing I want to talk about regarding the conversation I had recently with my friends and...
2014-02-14
1,120 reads
It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re...
2014-02-14
482 reads
Tracking 3,500 stores with your hands tied
One major problem is that Sonic has more than 3,500 stores across the United...
2014-02-14
329 reads
When data entry is strictly defined, it is nice to have data validation list in place, so entries are uniform....
2014-02-14
707 reads
TwitterGoogle+The post Application Data Asset Library appeared first on Derek Wilson - Blog .
2014-02-14
769 reads
I already post an article how to setup Linked Server in SQL Server and querying on linked Server using open...
2014-02-14
77,199 reads
The next location for my ‘Virtualization for SQL Server DBAs’ SQL Saturday preconference training session is Friday, March 28th, in...
2014-02-13
772 reads
I needed to get this one on Hyper-V, so I decided to document the process. I’ve put together a series...
2014-02-13
889 reads
If you haven’t heard of the name before, you must have seen what it does at some point. FIGlet which...
2014-02-13
1,773 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