Viewing 8 posts - 31 through 38 (of 38 total)
I spoke too soon, it doesn't work perfectly, each row is repeated for each price range, so I am getting 6 times as many rows as I expected when @PriceRange...
June 18, 2008 at 6:45 am
rbarryyoung (6/18/2008)
To answer your question then: from a performance standpoint, 2 different...
June 18, 2008 at 6:31 am
rbarryyoung (6/16/2008)
SELECT SUM(Case When R1.price between 0 and 50 Then 1 Else 0 End) as [£0 to...
June 17, 2008 at 8:17 am
I have made a small addition to the price range table that is used in my join. I have manually created a range order field that serves 2 purposes. The...
June 17, 2008 at 4:36 am
Sergiy (6/16/2008)
Something about placing business rules into data, not into code?
What if tomorrow some ranges will need to be changed?
Can you customers...
June 17, 2008 at 3:54 am
This is what I have got working for returning the price range counts:
SELECT Range,COUNT(DISTINCT(item)) AS Count
FROM tblPriceRanges
INNER JOIN dbo.item ON price >= RangeFrom AND price < RangeTo
WHERE(@ManID IS NULL OR...
June 16, 2008 at 10:20 am
Hi Jason,
I am giving it a go now, I will see how I get on.
I am coding in ASP, hence putting the sorting in the stored procedure. I find...
June 16, 2008 at 9:38 am
@ Jason, you have started me off in an interesting read, thank you.
@ Mark, that looks like a very good solution to me. Nice and compact.
The aim of this is...
June 16, 2008 at 9:26 am
Viewing 8 posts - 31 through 38 (of 38 total)