Dell Webinar: Subqueries For Superheroes
For the second time this year, Dell Software has invited me to present as part of the webinar series on...
2014-06-09
564 reads
For the second time this year, Dell Software has invited me to present as part of the webinar series on...
2014-06-09
564 reads
A little while back Michael J Swart(B/T) offered to help you become a better writer. This was exciting for me...
2014-06-09
892 reads
(Be sure to checkout the FREE SQLpassion Performance Tuning Training Plan – you get a weekly email packed with all the...
2014-06-09
1,616 reads
I think I'd like to do a small short series on documentation. I personally love documentation. I honestly think most...
2014-06-09
751 reads
Imagine that you have a table of customers
createtable Customer
(
Name varchar(30),
LastName varchar(30),
Title varchar(30)
);
go
insertinto Customer values('Alex','Smith','Mr.');
insertinto Customer values('John','Doe','Dr.');
goNow you selecting list...
2014-06-10 (first published: 2014-06-09)
1,896 reads
I am extremely proud to announce that we are officially working on the SQLSaturday in the second biggest city in...
2014-06-09
176 reads
Didn’t get as much done this week as I’d hoped, but a little luck balanced that out! I do at...
2014-06-07
366 reads
I recently had an opportunity to write an article for mssqltips.com on managing registered servers under “local server groups”, and...
2014-06-07
3,204 reads
I’m in the process of moving some my lab environments that I use for teaching SQL Server classes to Azure....
2014-06-06
1,295 reads
Photo credit – Jenn and Tony Bot
Sometimes old stuff is just as cool as new stuff. Over the past few years,...
2014-06-06
774 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