Viewing 15 posts - 2,761 through 2,775 (of 3,489 total)
Why not create a UNIQUE constraint on the table and disallow the duplicates that way?
December 2, 2014 at 11:59 pm
I may just spend some AmazonBucks on them. Ferrari's book looks really good. Might have to find some tutorials on MDX too, but one thing at a time.
Thanks...
December 1, 2014 at 3:16 pm
Your English is fine! (the sample data is a huge help!)
Here's the sample data in a useable format:
SELECT 49 AS WeekNo, 28...
December 1, 2014 at 12:24 pm
Sorry, can't remember if any windowing functions were available in 2008R2. Haven't used 2008 in an age (partly because windowing functions are super handy!)
November 29, 2014 at 11:08 am
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
Viewing 15 posts - 2,761 through 2,775 (of 3,489 total)