PowerPivot Saga: Scheduled Refresh more than once a day
PowerPivot data models in Excel is a great way to quickly pull data from various sources, build relationship between different...
2014-11-03
2,482 reads
PowerPivot data models in Excel is a great way to quickly pull data from various sources, build relationship between different...
2014-11-03
2,482 reads
I recently celebrated my 5 year anniversary at Pragmatic Works. Boy, how time flies by. It feels like just the...
2014-11-02
1,665 reads
I recently had the chance honour to spend twenty minutes talking to Boris Hristov about testing with Sql Server for his Google Hangouts series, catch the video here
One of...
2014-11-02
8 reads
I recently had the chance honour to spend twenty minutes talking to Boris Hristov about testing with Sql Server for...
2014-11-02
49 reads
I recently had the chance honour to spend twenty minutes talking to Boris Hristov about testing with Sql Server for...
2014-11-02
66 reads
This week, I’m attending two different summit events in the Seattle area. On Sunday through Tuesday, I’ll be participating in...
2014-11-02
763 reads
For the first time ever, I will be a PASS Summit Attendee! I’m very excited about going and I’ll be...
2014-11-02
476 reads
A long time ago I looked at some reasons as to why persisted computed columns ( and therefore indexes on those...
2014-11-02
378 reads
Reading Time: 4 minutesThings are happening
or: Learning to Not Look a Gift Horse in the Mouth
The stars seem to have...
2014-11-02
422 reads
Things are happening
or: Learning to Not Look a Gift Horse in the Mouth
The stars seem to have aligned. I am...
2014-11-02
879 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