Viewing 14 posts - 1 through 14 (of 14 total)
At first glance, I would say that your performance issues are probably related to the using a loop in the first place, which results in records being updated one by...
September 11, 2015 at 6:00 am
My apologies for resurrecting such an old post, but I am looking for a similar solution as Gary's question, and have not found any answers yet.
In response to Daniel's suggestion...
September 7, 2015 at 7:46 am
Remember that COALESCE will find the first non-NULL value, therefore it will evaluate to true if any one of the values in the list is valid. Look at your other...
September 5, 2011 at 8:57 am
I have not tried this myself, but offhand I would say you could try using a subreport, or data region (tablix within a tablix).
September 5, 2011 at 7:24 am
Look at the following article about using CTEs to concatenate field values, to see if this might resolve your problem:
http://www.codeproject.com/KB/reporting-services/Concatenate_Field_Values.aspx
August 22, 2011 at 8:18 am
Usually, in such a case, you might be better served with a stored procedure, using dynamic SQL.
If you want to keep your query in the report, however, you can do...
July 15, 2011 at 6:21 am
Could you not rather do your categories as one parameter, with a drop-down list?
Then your query becomes a simple WHERE Category IN (@Category)
July 15, 2011 at 2:03 am
Not exactly what I had in mind...
Is there a date column in your t_facility_valuation table, and would it contain yesterday and today's dates?
July 4, 2011 at 3:54 am
Sorry, I was making assumptions, and we all know where that leads...
In my example t1 and t2 are aliases to the same table, but the principle can be adapted to...
July 4, 2011 at 3:01 am
You could try something like this:
SELECT
T1.sm as ID,
CAST(t1.last_modified) AS DATE) as Curreny_Reporting_Period,
SUM(t1.amount) AS Current_Reporting_amount,
CAST(t2.last_modified AS DATE) as Previous_Reporting_Period,
SUM(t2.amount) AS Previous_Reporting_amount,
SUM(t1.amount) - ISNULL(SUM(t2.amount),0) as Amount_Difference
FROM t1
LEFT OUTER JOIN t2
ON t1.nr =...
July 4, 2011 at 2:06 am
I would say you need some sort of employment history table,
with the following details:
Department_Identifier, Employee_Identifier, Start_Date, End_Date
July 1, 2011 at 7:08 am
I assume that you need help formulating the WHERE clause of your query to allow for NULL conditions?
There are several ways to accomplish this, the best being to write your...
June 30, 2011 at 5:46 am
One possibility would be to use 2 queries - one for types 04 and 05 only, and one for everything else - joined with a UNION ALL.
June 30, 2011 at 2:45 am
When using the LIKE comparison, SQL will not use any index on the column being queried, causing performance to suffer.
Where possible, use a more specific operator, or try using BETWEEN...
June 30, 2011 at 2:37 am
Viewing 14 posts - 1 through 14 (of 14 total)