Understanding Analysis Services Relationships using Dimension Usage
As a part of designing an Analysis Services cube you must define how each dimension is related to each measure...
2014-07-15
1,732 reads
As a part of designing an Analysis Services cube you must define how each dimension is related to each measure...
2014-07-15
1,732 reads
DateEventAugust 2 SQLSaturday #324 – Baton Rouge 2014August 9 SQLSaturday #304 – Indianapolis 2014August 23 SQLSaturday #328 – Birmingham 2014August 23 SQLSaturday #309...
2014-07-15
653 reads
*Photo by Red Gate
Come a little closer; no seriously come on over just a little closer as I don’t want...
2014-07-15
577 reads
I wouldn’t say it’s common knowledge that you should look at execution plans when tuning queries, but it’s not exactly...
2014-07-17 (first published: 2014-07-15)
10,311 reads
Had our second planning meeting, still trying to complete the email template and realized we had not clearly defined two...
2014-07-15
645 reads
During a bit of work I’ve been doing this evening for SQLRelay, I used something I have in my arsenal of...
2014-07-14
1,101 reads
I am about to set sail on a new venture with my next official whistle stop. This year has been plenty full of whistle stops and I plan on...
2014-07-14
8 reads
I am about to set sail on a new venture with my next official whistle stop. This year has been...
2014-07-14
782 reads
If you work with colleagues that aren’t as interested in growing and learning as you are, I hope you’ll read...
2014-07-14
643 reads
Every SQL Saturday leaves a mark of some sort. This time around, the folks in Sacramento have really helped leave a BIG mark. That’s right, this last weekend was...
2014-07-14
8 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