Standard Deviations with CTE in SQL
I was working with a client recently getting the number of standard deviations a student was off the average number...
2014-02-27 (first published: 2014-02-24)
3,356 reads
I was working with a client recently getting the number of standard deviations a student was off the average number...
2014-02-27 (first published: 2014-02-24)
3,356 reads
Two recent salary surveys have shown that R language skills attract median salaries in excess of $110,000 in the United...
2014-02-24
1,301 reads
SQL Saturday OKC is coming up!
The event will be August 23rd, 2014!
Now is the time to get signed up. We...
2014-02-24
517 reads
As you have likely noticed in my series, Oracle Tips for MSBI Devs, I have done a lot of work...
2014-02-24
894 reads
I am honored to be the very first presenter of the new PASS chapter in Lafayette, Louisiana this Tuesday, presenting...
2014-02-23
620 reads
I will be speaking and whiteboarding for Data Architecture Virtual Chapter meeting on February 27, 2014 on the fitting topic...
2014-02-23
478 reads
Streaming video giant Netflix is experimenting with the advanced artificial intelligence method commonly known as deep learning, it explained on...
2014-02-23
907 reads
One of the key tasks of a DBA is to maintain the database indexes and make sure they are not...
2014-02-23
3,023 reads
This week the AzureCAT team is excited to make our first team appearance at the Strata conference. For those of you...
2014-02-23
480 reads
Problem
Today, one of the developers come to me and asked me the question that is there any T-SQL function that...
2014-02-23
47,738 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