November Snuck Up on Me
I should have gotten this post out last week with another follow-up this week. Well, looks like I will have...
2010-11-01
460 reads
I should have gotten this post out last week with another follow-up this week. Well, looks like I will have...
2010-11-01
460 reads
I have no intentions of kicking the bucket – ever. I have no intentions of getting old either. We’ll see how...
2010-10-26
785 reads
Finally I am getting around to posting my Quarterly Goal review. Last quarter’s review can be found here.
Start a Blog
This...
2010-10-26
750 reads
In case you hadn’t heard SQLSaturday #54 was Oct 23 in Salt Lake City. It was a dreary opening to...
2010-10-25
1,126 reads
Time for the ghouls and goblins to come out of the woodwork once again for another tale of deception and...
2010-10-14
2,804 reads
If you truncate a table, you cannot undo the action like you can with a delete. What is the difference between the two methods to remove data from a...
2010-10-12
9 reads
Time for the ghouls and goblins to come out of the woodwork once again for another tale of deception and...
2010-10-12
1,433 reads
Holy Cow, another month has flown by without much of a hint. We now have upon us another TSQL Tuesday....
2010-10-07
645 reads
This has been on my radar now for a little over a week. I ran across a request in the...
2010-10-05
759 reads
It is amazing how fast time moves the older (and slower) we as humans get. Looking back on time, it...
2010-10-03
628 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 Gedung Sutrado, Jl. Kenari 2 No.5 Lt. 1, RT.2/RW.3, Kenari, Kec. Senen,...
Telp/Wa 628218200203 Jl. Biak No.44 AB, RT.8/RW.11, Cideng, Kecamatan Gambir, Kota Jakarta Pusat, Daerah...
Telp/Wa 628217555651 Gedung Plaza Bank Index Ground, Jl. M.H. Thamrin No.57 Floor Suite GF-21,...
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