SQLSaturdays
Can you believe that I have never attended a SQLSaturday (http://www.sqlsaturday.com)? Well, that is changing very soon. You will see me at...
2010-09-08
845 reads
Can you believe that I have never attended a SQLSaturday (http://www.sqlsaturday.com)? Well, that is changing very soon. You will see me at...
2010-09-08
845 reads
One of my favorite people in the SQL community, Andy Leonard, posted a blog criticizing the selection process for the pre...
2010-05-31
1,785 reads
What would get over 400 techies to give up a beautiful Saturday and spend the day inside learning about SQL...
2010-05-23
1,029 reads
If you follow me on Twitter or are my friend on Facebook, you might already know the news. I am joining...
2010-04-29
2,024 reads
I was lucky enough to attend the MVP Summit held last week in Redmond and Bellevue. I attended the Summit...
2010-02-23
859 reads
If you haven't seen the Simple-Talk newsletter (it's free, so sign up!) you may not have seen my article on...
2010-02-08
1,283 reads
I was really excited when my PASS DVDs arrived last week. I had purchased the DVDs (or maybe CDs) back...
2010-02-05
957 reads
I'm not sure if I have been tagged by anyone, but this is such an interesting topic I thought I...
2010-01-19
478 reads
If you have been putting off ordering your copy of "SQL Server MVP Deep Dives", now is your chance to...
2009-12-23
499 reads
You learn a lot when teaching someone else, whether that be writing articles or books or actually teaching a class....
2009-12-23
674 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...
Telp/Wa 628218200203 Jl. Batu Ceper No.18 A-B, RT.1/RW.2, Kb. Klp., Kecamatan Gambir, Kota Jakarta...
Telp/Wa 628218200233 Komplek Apartemen Grand Kartini, Ruko. 18, Jl. Kartini Raya No.57, RT.3/RW.2, Kartini,...
Telp/Wa 628217555651 Wisma 46 Lantai Dasar, Jln. Jend. Sudirman Kav. 1, RT.5/RW.3, Senayan, Kec....
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