Design Concepts For Better Power BI Reports Part 4: The Squint Test
Data visualization should be iterative. You should get a good initial draft put together and then check to make sure...
2017-12-22
799 reads
Data visualization should be iterative. You should get a good initial draft put together and then check to make sure...
2017-12-22
799 reads
When I first moved to the city where I now live, I found an oil change place just a couple...
2017-12-21
387 reads
If an application vendor has something built into their code to perform index maintenance, unbeknownst to you, that is a near-worst case scenario.
Related Posts:
Where is that Mask? December 28,...
2017-12-20
13 reads
One good database maintenance practice is to keep the indexes in good working order. This is typically done via index...
2017-12-20
669 reads
A quick post this week, since it’s that time of the year when people do gift exchanges and put up...
2017-12-20
381 reads
Since I started working as a data professional some 15 years ago, I’ve had an enjoyable and successful career. I...
2017-12-20
357 reads
One of the hardest things you can do as a blogger is to come up with a post topic. Do...
2017-12-20
354 reads
Happy holidays everyone! Ok, this isn’t even remotely related to SQL Server but it sounded fun. I found someone playing...
2017-12-20
974 reads
Since starting the Guy In A Cube series over three years ago, Adam Saxton has become the front man for...
2017-12-20
370 reads
A little less than 2 years ago, my wife and I loaded up our cats and dog and moved from...
2017-12-20
475 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 Risk Vs Reward, The never...
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...
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