Viewing 9 posts - 1 through 9 (of 9 total)
dwain.c (2/11/2015)
This looks to me...
February 12, 2015 at 8:36 am
Thanks for replies.
The reason that CTE is not allowed comes from Dundas Dashboard.
I am using the script to create virtual table there. Only Select is allowed, no variable, no CTE,...
February 11, 2015 at 1:41 pm
Luis Cazares (2/10/2015)
The solution should be more like this:
SELECT CASE...
February 10, 2015 at 11:16 am
David Burrows (2/10/2015)
Hint: Use CASE statement for Category and use it in GROUP BY
Thanks.
Here is what I come up:
select 'Others' as [Category],
sum(
case when [Category] not in
(
select top 5...
February 10, 2015 at 10:34 am
Alan.B (2/10/2015)
This is a little ambiguous. Can you post an example of what you want?
Thanks for reply and sorry for the ambiguous feeling.
Say I have a select query:
Select Category, Sum(Column1)...
February 10, 2015 at 9:47 am
dwain.c (1/28/2015)
What happens when you have more than 6 policies in any of the categories?
Thanks.
The number of output is fixed and won't change in the future.
January 29, 2015 at 7:56 am
Thank you guys
January 19, 2015 at 10:56 am
Thanks Luis and Scott for the code.
Using Luis code, how do I get a total based on the 12 fields' count result?
January 9, 2015 at 9:16 am
Viewing 9 posts - 1 through 9 (of 9 total)