PASS 2009 Summit Site Open
Registration has been open since the last Summit, but this year Bill Graziano and team have released the Summit 2009...
2009-03-24
592 reads
Registration has been open since the last Summit, but this year Bill Graziano and team have released the Summit 2009...
2009-03-24
592 reads
In this SQL School video, learn how the UNION statement can help you join together results from different queries. MVP Andy Warren explains this T-SQL statement.
2009-03-24
6,849 reads
The call for speakers is open through midnight on April 10, 2009, so get busy submitting those abstracts! Work hard on the title and description, make it something that seems interesting and compelling for attendees. Expect the competition to be fierce...The call for speakers is open through midnight on April 10, 2009, so get busy submitting those abstracts! Work hard on the title and description, make it something that seems interesting and compelling for attendees. Expect the competition to be fierce...
2009-03-24
950 reads
As I gain more experience I've found that stress comes in three forms; stress that is there that you don't...
2009-03-23
589 reads
The call for speakers is open through midnight on April 10, 2009, so get busy submitting those abstracts! Work hard...
2009-03-22
750 reads
I was browsing the March 2009 issue of Visual Studio Magazine today and found that it's changing again. It's been...
2009-03-19
786 reads
This SQL School video shows how you can speed up your backup process by striping the backup across multiple disks. MVP Andy Warren narrates.
2009-03-19
3,649 reads
I've been slowly looking at and experimenting with LinkedIn to see if it has value and if so, how to...
2009-03-19
921 reads
I try to go to a spring training game once or twice a year and it serves as a useful...
2009-03-17
720 reads
This SQL School video will introduce you to the INTERSECT command in T-SQL. MVP Andy Warren explains how this command allows you to find matching rows in a join and a UNION.
2009-03-17
4,890 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