IT Education Part 2
For those thinking about an IT career the options are bewildering, and I think the education establishment doesn’t do a...
2010-12-10
719 reads
For those thinking about an IT career the options are bewildering, and I think the education establishment doesn’t do a...
2010-12-10
719 reads
The Way We Work Isn’t Working by Tony Schwartz ($19 @ Amazon) is a holistic approach to work and a work...
2010-12-09
606 reads
The call for speakers is open through December 15, 2010, and I hope many of you will take the chance...
2010-12-09
1,187 reads
I received the email this week that I won’t be getting a place on the schedule, nor will the other...
2010-12-08
788 reads
I’ve been thinking about my goals for 2010, ones that I’ve set and adjusted a couple times, and thinking more...
2010-12-07
540 reads
The call for speakers is open through December 15, 2010, and I hope many of you will take the chance...
2010-12-07
1,197 reads
Like many in IT I’m self taught, starting with DOS and batch files, then proceeding through QuickBasic, Visual Basic in...
2010-12-06
623 reads
I just re-read Alas, Babylon by Pat Frank ($10 @ Amazon). It’s a bit of a touchstone for me. It was...
2010-12-03
621 reads
I recently upgraded to LiveWriter 2011 while upgrading to the final version of LiveMesh. After the upgrade I noted the...
2010-12-01
345 reads
I read Chasing Daylight by Eugene O’Kelly after a reference to it in an audio book. It’s the story of...
2010-11-30
1,515 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