Mavericks don't make it
One of the blogs I most enjoy reading is Life Beyond Code.
This blog allows me to take off my technology...
2006-02-18
1,465 reads
One of the blogs I most enjoy reading is Life Beyond Code.
This blog allows me to take off my technology...
2006-02-18
1,465 reads
I've been working on the "Designing a Database Consolidation Strategy" chapter of my book and it's been quite an effort....
2006-02-17
1,503 reads
In the tradition of many others, I decided to add a reading list to my professional site. The reading list...
2006-02-16
1,441 reads
I've been out of pocket and off the forums for the last few weeks as
we've had several major tasks where...
2006-02-15
1,388 reads
I saw this on Greg Hughes' blog
and wondered, "What in the world?" So I took a look. It's one of...
2006-02-10
1,452 reads
For those of you who are interested in speaking at PASS in November, the submission site is open: http://passew.prod.web.sba.com/callpapers/CallPapers.cfm?conference_id=15 .
I encourage...
2006-02-09
1,329 reads
I've been thinking about doing this for a whole and I finally got
around to building a reviews section into the...
2006-02-08
1,492 reads
I haven't had time to research the extent, but someone reported plagiarism and the author admitted the code, while "from...
2006-02-06
1,426 reads
This is very interesting.
I've often thought that blogs were a great source of information, but it is more unvetted than...
2006-02-03
1,379 reads
I left at lunch to hit the gym and then meet a friend. Afterwards I stopped by Starbucks to do...
2006-02-03
1,419 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