Red Gate Software Supports SQLSaturday
If you've read my blog over the past year and a half you know that I've been heavily involved in...
2009-03-01
287 reads
If you've read my blog over the past year and a half you know that I've been heavily involved in...
2009-03-01
287 reads
If you haven't visited yet, you definitely want to read Linchi's blog - it's packed full of on topic posts about...
2009-02-26
1,809 reads
Most of us aren't good decision makers. We make decisions based on emotion rather than facts, and for many decisions...
2009-02-25
2,287 reads
You can read the previous posts here. To finish up (I think), I want to share a networking technique I stumbled on a few years ago, and talk about one more good reason to network.
2009-02-25
1,553 reads
I've scheduled another iteration of my Technical Speaking Seminar for March 14, 2009 in Orlando. It's free, and I'm hosting...
2009-02-24
1,481 reads
It's been pretty busy since my last post. Just in one week I had at least 12 hours devoted to...
2009-02-23
735 reads
Stuart says that as of Feb 20 registration is at 150 with a cap of 200, and plenty of speakers...
2009-02-22
678 reads
Announced in the past week or so, Microsoft has released an update to Codezone that expands the focus beyond just...
2009-02-19
737 reads
You can read the previous posts here. To finish up my thoughts on networking I want to brain storm some about how we might make it easier and more effective for the average Joe (which is most of us) to network. If you've been to the PASS Summit, or...
2009-02-19
1,120 reads
You can read the previous posts here. To finish up (I think), I want to share a networking technique I...
2009-02-18
718 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