Book Review: SQL Server 2008 Query Performance Tuning Distilled
I'm just finishing up SQL Server 2008 Query Performance Tuning Distilled by Grant Fritchey and Sajal Dam and overall I've...
2009-05-07
502 reads
I'm just finishing up SQL Server 2008 Query Performance Tuning Distilled by Grant Fritchey and Sajal Dam and overall I've...
2009-05-07
502 reads
A few weeks back I wrote about trying out the LinkedIn Add-in and time has reinforced for me that it's...
2009-05-06
493 reads
As I've mentioned in earlier posts (Part 1, Part 2, Part 3) I've engaged speaking and networking Don Gabor to...
2009-05-05
422 reads
My friend Grant Fritchey recently posted in response to a quiz and at the end of that mentioned that he'd...
2009-05-04
590 reads
Just had a call with Ken Starnes last week and all is proceeding for a great two track event in...
2009-05-04
301 reads
If you haven't already, start with Part 1 and Part 2. In Part 2 I mentioned that I have hired Don to coach me on networking, and this week I'll share some results from our first 1.5 hour session.
2009-05-04
975 reads
I drove up on Friday night for the speaker dinner, getting there after a busy day trying to catch up...
2009-05-03
426 reads
I've been trying to feature a blog each month and for April (one day late!) it's Aaron Alton. HOBT stands...
2009-05-01
496 reads
Last Friday I posted about turning my first pen on a lathe, this week I'm discussing my other recent project,...
2009-04-30
1,745 reads
I serve on the PASS Board of Directors, but this post reflects my personal views and not an official PASS...
2009-04-30
1,437 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