Microsoft announces that it will no longer support SQL Server and that SQL 2014 was an April Fools Joke!
Microsoft has announced that SQL 2014 was in fact an elaborate April Fool’s joke and that Microsoft intends to move...
2014-04-01
414 reads
Microsoft has announced that SQL 2014 was in fact an elaborate April Fool’s joke and that Microsoft intends to move...
2014-04-01
414 reads
Ever assume that when you don’t specify NULL or NOT NULL on a new column it’s going to allow NULLs?...
2014-03-31
1,210 reads
Ever assume that when you don’t specify NULL or NOT NULL on a new column it’s going to allow NULLs?...
2014-03-31
1,046 reads
I had a recent run in with collation problems and it got me started reading. As I read I started...
2014-04-02 (first published: 2014-03-26)
1,745 reads
I had a recent run in with collation problems and it got me started reading. As I read I started...
2014-03-26
514 reads
I started reading about collations after I had a recent run in with them. As I read I started to...
2014-03-24
847 reads
I started reading about collations after I had a recent run in with them. As I read I started to...
2014-03-24
646 reads
I won’t be able to make it to the PASS Summit this year but I still consider myself part of...
2014-03-19
685 reads
I had a recent run in with collation problems and it got me started reading. As I read I started...
2014-03-19
2,264 reads
True story: I worked in a computer lab many years ago and one day this guy (a grad student) checked...
2014-03-17
579 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