Viewing 15 posts - 2,611 through 2,625 (of 3,334 total)
I would probably bring all the data down into Access and index the tables -- after you have all the data. Then build your query there. When you're...
November 29, 2014 at 7:38 am
One option is to do this with a windowing function, like this:
SELECT ProductID
, Sales
, SUM(Sales) OVER (ORDER BY Sales
ROWS BETWEEN UNBOUNDED PRECEDING
AND CURRENT ROW) AS RunningTotal
FROM (SELECT 1 AS ProductID,...
November 29, 2014 at 7:28 am
Exercise your GoogleFu... There are examples all over the place, especially on the MS website...
http://msdn.microsoft.com/en-us/library/ms190307.aspx
See example B.
November 28, 2014 at 7:20 pm
I'm still confused. Are you changing the backcolor of your cell with that? Otherwise, I'm afraid your approach doesn't make sense to me.
Something like this in the BackgroundColor...
November 28, 2014 at 7:15 pm
I'm confused. When I put an indicator into my report, it gives me ranges for Red, Yellow, Green. I tried a couple to see if I could recreate...
November 27, 2014 at 6:32 pm
What version of SQL Server are you using? If you're using 2012, you could use something like this as the source for your dataset:
SELECT
custID
,OrderID
,OrderDate
,LAG(OrderDate) OVER (PARTITION BY custID ORDER...
November 27, 2014 at 5:44 pm
If you use windowing functions, this isn't that hard. Since I didn't understand how the create table/insert statements were related to your question, this is a somewhat generic answer.
It...
November 24, 2014 at 10:32 pm
Seems you would do that in Excel... nothing to do with SSRS.
November 24, 2014 at 12:20 pm
You might be able to do this by using a Tally table. Jeff Moden has a great article on it.
November 23, 2014 at 2:20 pm
Itzik Ben-Gan's book on Window functions is good.
November 19, 2014 at 8:34 am
SELECT FORMAT(2504,'0000000');
November 17, 2014 at 8:41 pm
Looks like this works:
SELECT EmployeeID
, MIN(CoverageCode1) AS CC1
, MIN(CoverageDate1) AS CD1
, MIN(CoverageCode2) AS CC2
, MIN(CoverageDate2) AS CD2
FROM vwCoverage
GROUP BY EmployeeID;
November 17, 2014 at 7:19 pm
you would point to the calculated date if you wanted to do date calculations, comparisons etc. The 20040201 looks like a date (to you, not to SQL Server), so...
November 14, 2014 at 7:08 pm
What are you trying to do with your SQL statement?
November 13, 2014 at 8:07 pm
Definitely a case where some sample data would go a long way.
That said, I think you could use a UNION query to get what you want.
November 13, 2014 at 5:50 pm
Viewing 15 posts - 2,611 through 2,625 (of 3,334 total)