TSQL Tuesday: Why Are DBA Skills Necessary
Quote: “Database stuff, all this programming stuff, is easy. Anyone can do it. That’s why everyone in the company has sa...
2010-11-02
1,114 reads
Quote: “Database stuff, all this programming stuff, is easy. Anyone can do it. That’s why everyone in the company has sa...
2010-11-02
1,114 reads
As if the US Election and SQL Rally voting were not enough (and have you voted yet for the SQL...
2010-11-01
653 reads
Right, I said I wouldn’t compete, but I can’t help pointing out that I’m pretty proud of this particular blog...
2010-11-01
643 reads
It’s actually kind of cool that SQL Rally voting for the pre-conference seminars and voting in the real(ish) world in the USA are coinciding. I’m in the running for the pre-con AND I’m volunteering for an actual election campaign for the first time ever.
2010-11-01
1,038 reads
It’s actually kind of cool that SQL Rally voting for the pre-conference seminars and voting in the real(ish) world in...
2010-10-31
1,675 reads
Not so much my special as SQL Saturday #59's Special. These guys in NYC are pulling out all the stops....
2010-10-29
1,392 reads
During the PASS Summit I have again been given the opportunity to keep my laptop plugged in… as long as...
2010-10-28
770 reads
I get the call, you get the call, everyone gets the call. “Hey, my app/procedure/query/report is running slow.” Now what...
2010-10-28
716 reads
Are you looking for opportunities to show off your elite writing skills and consumate SQL Server knowledge? Want a chance...
2010-10-28
631 reads
The SQLRally, a new PASS initiative taking place in the spring, is going to be a community driven event. This...
2010-10-28
1,512 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