Now Tech Leaders Are Really Sucking Up to Satya Nadella #microsoft
Satya Nadella’s appointment as the new CEO of Microsoft, coupled with the news that Bill Gates would step down as...
2014-02-09
380 reads
Satya Nadella’s appointment as the new CEO of Microsoft, coupled with the news that Bill Gates would step down as...
2014-02-09
380 reads
In this series I’m going to detail the 5 T-SQL Commands that review in my 5 T-SQL Commands I’ve been...
2014-02-09
675 reads
Toyota may have plans to end production of the FJ Cruiser but the aftermarket continues to bring out new off...
2014-02-09
576 reads
This week, we released Management Packs for SQL Server 2008 and 2012 Analysis Services. The corresponding downloads are available at:
System ...
2014-02-09
689 reads
Madeira’s excellent course on SQL Server Integration Services starts in March, but you can get a head start here! Take...
2014-02-09
271 reads
The Path to the PDW
For decades we had the traditional electric oven to cook with and people thought it was...
2014-02-08
1,012 reads
Over the past few years, the cloud evolution has answered all questions on the cloud being the right strategy. The...
2014-02-08
824 reads
This Powershell GUI tool is used to list Top 10 memory consumption process of a given computer[local /Remote]. In the...
2014-02-07
969 reads
This is pretty amazing. After 1970 the grow rate is astronomical for Walmart. You have got to watch this. Pretty...
2014-02-07
424 reads
Photo credit – Travis
Ever go digging through your backyard for dinosaur bones? Maybe not, but it’s worthwhile from time to time...
2014-02-07
793 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