SQL Pi
A mildly humorous title, spawned by a link my friend Jon sent me about calculating Pi using a batch file....
2009-02-10
791 reads
A mildly humorous title, spawned by a link my friend Jon sent me about calculating Pi using a batch file....
2009-02-10
791 reads
Last week I posted Update #3 that discussed my first board meeting, but I didn't have time to cover my goals, so I 'll do that and add some other minor items as well.
2009-02-10
968 reads
As I mentioned last week I drove to Miramar for the South Florida Code Camp, arriving in time for the...
2009-02-09
531 reads
Forwarding on a note from my local MS Developer Evangelist Joe Healy about his next series of free presentations coming...
2009-02-08
786 reads
Last week I posted Speaking at Community Events - Time to Raise the Bar?, a first cut at talking about to...
2009-02-08
1,274 reads
Last week I posted Update #3 that discussed my first board meeting, but I didn't have time to cover my...
2009-02-05
406 reads
I've been busy with other projects and haven't had time to focus as much as I'd like on my SQLSaturday...
2009-02-05
490 reads
If you're thinking about taking a job as a manager there are two questions that will help you quickly understand...
2009-02-04
959 reads
The fifth annual South Florida Code Camp is coming up this Saturday, Feb 7, 2009, at Devry University, 2300 SW...
2009-02-04
285 reads
If you could list all the reasons I work, the number one reason would be to support my family. My definition of support includes spending an appropriate amount of time with family, not just working to support it. I suspect most of you would agree with that as a goal.
2009-02-04
1,886 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