All In & Being Competitive
Many of us in IT are competitive, maybe slightly more so than in other professions. Competition adds a little spice...
2009-02-17
1,505 reads
Many of us in IT are competitive, maybe slightly more so than in other professions. Competition adds a little spice...
2009-02-17
1,505 reads
You may want to read Part 1 , Part 2 , and Part 3 before continuing. This time around I'd like to talk about social networking. We'll start with social networking. Facebook, MySpace, and Twitter are all good examples of using technology to let...
2009-02-17
1,530 reads
I've always enjoyed the science fiction writings of Gordon Dickson, and recently re-read an old copy of The Human Edge,...
2009-02-16
882 reads
You can read the previous posts here. To finish up my thoughts on networking I want to brain storm some...
2009-02-15
637 reads
Last week I posted Speaking at Community Events - Time to Raise the Bar?, a first cut at talking about to what degree we should require experience for speakers at events like SQLSaturday as well as when it might be appropriate to add additional focus/limitations on the presentations that are accepted. I've got a few more thoughts on the topic this week, and I look forward to your comments.
2009-02-13
360 reads
I think we've all seen and heard about Flight 1549 doing the emergency landing on the Hudson River. Truly a...
2009-02-12
574 reads
You may want to read Part 1, Part 2, and Part 3 before continuing. This time around I'd like to...
2009-02-11
553 reads
Scott Klein invited me to speak to his group in West Palm Beach, so I'll be going down on May...
2009-02-11
497 reads
A short post today. For a while I've been subscribing to the Word of the Day from Merriam-Webster (free) and...
2009-02-11
624 reads
We'll be announcing this on the main www.sqlpass.org site and the PASS blog over the next day or two, but...
2009-02-10
1,227 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