Viewing 15 posts - 2,671 through 2,685 (of 3,484 total)
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
If you backed up your databases before doing this, you could just restore over the bloated ones and be done with it. If not, you may have to use...
January 24, 2015 at 8:44 pm
Tried working with the data you provided and it's a mess. Could you please post table definitions and insert statements for your data? Then those trying to help will...
January 24, 2015 at 7:13 pm
Viewing 15 posts - 2,671 through 2,685 (of 3,484 total)