Updating Software on the Blackberry Bold
Had a message waiting on my phone this morning that there was a system upgrade available. Interesting, think it’s the...
2009-12-09
235 reads
Had a message waiting on my phone this morning that there was a system upgrade available. Interesting, think it’s the...
2009-12-09
235 reads
I currently write the editorial for the PASS Connector which is published every two weeks as part of my role...
2009-12-08
255 reads
Was just doing my more or less weekly update on LinkedIn and saw that – finally – just hit 500 connections. Growth...
2009-12-07
568 reads
Ran across the Time Top 50 web site list and thought I’d share. I’m fond of lists, especially about web...
2009-12-07
426 reads
Last week I posted about planning to cook some for Thanksgiving, thought this week I’d share some of how it...
2009-12-03
477 reads
On the Friday at the end of the Summit we had a 4 hour Board meeting, welcoming new board members...
2009-12-03
1,286 reads
I’ve fallen behind a little on sharing SQLSaturday news, so I’ll try to catch up on the latest. First, we’re...
2009-12-02
496 reads
SQL Server Standard editor Grant Fritchey needs more content! We’ve got about three done and three more in the pipeline,...
2009-12-02
958 reads
I met Tim about a year and a half ago at SQLSaturday Jacksonville and from the start we hit it...
2009-12-02
284 reads
Recently announced, Google Dashboard shows some but not quite all of the data that Google has accrued about you – a...
2009-12-01
1,128 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