Should I learn PowerPivot yet?
Rob’s got a good post called What is Power Pivot’s #1 Competitor? which has some great comments, as well as...
2014-02-11
703 reads
Rob’s got a good post called What is Power Pivot’s #1 Competitor? which has some great comments, as well as...
2014-02-11
703 reads
Where do I begin? First let me say, WOW what an experience!
How it All Began
When I first heard about SQL...
2014-02-11
1,384 reads
It's time for T-SQL Tuesday again and this month's host is my former co-worker, the @SQLRNNR himself, Jason Brimhall. Jason's...
2014-02-11
726 reads
Power BI for Office 365 is a new self-service business intelligence (BI) offering enabling businesses to gain insights from their...
2014-02-11
739 reads
Here is the session I gave for the techies at Microsoft about in-built tools available in SQL Server to analyze...
2014-02-11
969 reads
At our last MVP summit, I sat in on a session on PowerQuery. Our presenter, who is pretty passionate about...
2014-02-11
341 reads
Since the beginning of the information age, enterprises have relied on processing data to gain insights and make business decisions....
2014-02-11
1,311 reads
HCatalog makes Hive metadata available to users of other Hadoop tools like Pig, MapReduce and Hive. It provides connectors for...
2014-02-11
1,326 reads
AN EIGHT-STEP APPROACH TO A BIG DATA ANALYTICS PROJECT
We’ve created a high-level list that speaks to 8 different steps to...
2014-02-11
765 reads
Large enterprises looking for ways to modernize and migrate a portfolio of business applications to cloud will need to adopt...
2014-02-11
560 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