Viewing 15 posts - 2,686 through 2,700 (of 3,501 total)
There's a solution to the gaps and islands problem in Itzik Ben-Gan's book on windowing functions, too. I know I've seen at least one article on the web. Make...
February 10, 2015 at 2:23 pm
If you base the report on a stored procedure (with the parameters already declared), SSRS creates the corresponding report-level parameters for you.
Otherwise, you would have to create your own parameter...
February 10, 2015 at 1:51 pm
Welcome to SSC.
Thanks for the sample data. In the future, if you could post it like this, you'll get a lot more responses, and more quickly because people don't...
February 9, 2015 at 11:15 pm
Wendell,
I'm okay at VBA. I am pretty sure Allen Browne has some code to clone records inside a transaction. The only hard part is retrieving the value of the...
February 8, 2015 at 5:53 pm
Looks like COALESCE is what you're looking for.
Would be easier to test with a little bit of sample data, though.
February 5, 2015 at 12:42 am
Sorry, I meant to add that part - you can't use COALESCE in SSRS directly. It's a T-SQL keyword and not available in SSRS, so you would have to...
February 2, 2015 at 12:14 pm
be brave. Test it. On a DEV machine.
set statistics io on;
set statistics time on;
-- execute your query here
select *
from dbo.V_OnlineSalesOrder
WHERE IncomeGroup = 'Moderate';
set statistics io off;
set statistics time...
February 1, 2015 at 10:12 pm
Sounds to me like you should do the whole thing in a stored procedure. If vacation hours is completely dependent on hours worked (so, a timesheet entry), then why...
February 1, 2015 at 7:06 pm
"giving me errors" is just means it doesn't work. How about providing the error message?
February 1, 2015 at 3:59 pm
It worked when I based the report on this T-SQL statement:
SELECT field1,
field2,
field3,
field4,
field5,
COALESCE(Field1 + CHAR(10) + CHAR(13),'') + COALESCE(Field2 + CHAR(10) + CHAR(13),'') + COALESCE(Field3 + CHAR(10) + CHAR(13),'') +...
January 30, 2015 at 9:23 pm
Is there any way to convert this rows to columns.
Yep. PIVOT or use a report with a matrix
January 30, 2015 at 8:48 pm
Not enough information. Please post your table definition(s).
January 29, 2015 at 10:11 pm
How do you calculate health? (Or does it matter?)
I think you can create a stored procedure to join the two tables and flatten the data and then just group by...
January 29, 2015 at 11:27 am
use STUFF for the concatenated list and SUM with GROUP BY the result of the concatenation
January 28, 2015 at 9:17 am
If you want some robust logic, how about a robust explanation of how to get from your sample data to your result?
January 27, 2015 at 3:27 pm
Viewing 15 posts - 2,686 through 2,700 (of 3,501 total)