New Year: 2017 Year in Review
Welcome to gethynellis.com and our final post of the year.
SQL Server 2017 - In Review
It’s the end of what has been...
2017-12-30
587 reads
Welcome to gethynellis.com and our final post of the year.
SQL Server 2017 - In Review
It’s the end of what has been...
2017-12-30
587 reads
Naming no names here, but I want to talk about a really horrible sales call I had recently. Well, the...
2017-12-29
1,035 reads
In a few days the year 2017 will come to a close. The brand new year 2018 is on deck...
2017-12-29
340 reads
In a few days the year 2017 will come to a close. The brand new year 2018 is on deck...
2017-12-29
494 reads
Op 25 mei 2018 treedt de General Data Protection Regulation (GDPR) in werking. Deze nieuwe Europese privacywetgeving is van toepassing...
2017-12-29
294 reads
No matter how simple the task or how versed we are with doing a security audit, it seems like we can always stand to learn just a little bit...
2017-12-29
10 reads
No matter how simple the task or how versed we are with doing a security audit, it seems like we...
2017-12-29
354 reads
No matter how simple the task or how versed we are with doing a security audit, it seems like we...
2017-12-29
1,003 reads
(2017-Dec-29) Sankey diagram (chart), named after Matthew H Riall Sankey, is a good visualization tool for information flow within a system....
2017-12-29
3,238 reads
And here comes the 5th time I am reviewing what happened on the presentation an blogging side of my life,...
2017-12-29
620 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