Viewing 15 posts - 76 through 90 (of 134 total)
The solution below is how I would tackle this for Reporting Services (SSRS). Other report environments may have different approaches, so hopefully this one is suitable to your particular reporting...
May 24, 2013 at 10:25 am
Sean, that last solution is an elegant way to collapse the three UNIONed queries together. Kudos on seeing the simpler way.
JB, I'm not sure what the results need to...
May 24, 2013 at 9:16 am
The tables your describe in your sample are not hierarchical in the sense of the term usually applied to database tables, which is this: a self-referencing table in which for...
May 24, 2013 at 8:38 am
I would base the tablix on the BIPM dataset and then use an expression similar to this one for the value of each detail textbox in the tablix:
= Fields!ItemSales.Value -...
May 23, 2013 at 10:26 am
This link was shared in a similar post earlier today. I think it is applicable to your situation as well.
http://www.sqlservercentral.com/articles/comma+separated+list/71700/
The link above will show you how to list...
May 23, 2013 at 7:39 am
I think the issue that is muddying the waters is that the "examination" table is apparently a self-referencing hierarchical table. Hopefully there are a fixed number of "steps" from top...
May 22, 2013 at 7:11 pm
Glad I could help out. Although they are needed rarely, non-equi-joins (joins on an expression other than columnA = columnB) can be just the ticket for complex relational problems.
May 22, 2013 at 2:38 pm
Eugene,
After reading your explanation of the reason why GROUP BY is more efficient than window functions, I can see the logic in your in-line view solution. I would still do...
May 22, 2013 at 6:44 am
Sean,
I'm not an expert at execution plans, so I can't speak definitively on which approach is more efficient, but intuitively it would seem to me that referencing the raw data...
May 21, 2013 at 1:28 pm
My solution uses a "tally table" in a CTE to explode the list of classes into a list where each class is listed multiple times, specifically ClassCapacity + 10 times,...
May 21, 2013 at 9:02 am
My solution avoids joining the table to itself by using a couple of window functions in a CTE named "flagged_data." It adds a "StudentID_Problem" column (1 for a problem, 0...
May 20, 2013 at 7:40 pm
First, let me say that the idea of a "dynamic ranking" table that defines multiple ranking sets is an intriguing idea, and I may use it in other applications of...
May 20, 2013 at 7:00 pm
In my proposed solution below, I am making a few assumptions about your data and the results, some of which vary from your explicit description, so please reply and correct...
May 20, 2013 at 11:45 am
Be aware that sometimes fiscal years can shift. A company may decide to move the first day of the fiscal year from January 1 to June 1. Or they may...
May 20, 2013 at 8:14 am
I don't know why not, though I have not tested that particular arrangement. But once the data are in datasets, I think the report would see it all the same.
May 17, 2013 at 3:09 pm
Viewing 15 posts - 76 through 90 (of 134 total)