Viewing 15 posts - 2,581 through 2,595 (of 3,489 total)
Looks like if you created a subreport for this part:
1--------------------------contacted--------------------2-------------1-------------1-----------0----->
1-------------------------%contacted-----------------66%----------100%---------50%----------0%---->
1--------------------------interviewed------------------1-------------0-------------1------------1----->
1-------------------------%interviewed---------------33%----------0%-----------50%----------100%-->
You could do the % under that, and you'd be good to go, right?
April 1, 2015 at 2:19 pm
In a word, Normalize your table. Then this is stupid easy. Repeating fields are going to make your life miserable.
April 1, 2015 at 10:09 am
Took me a while to find it... and stop sitting on Itzik's book and actually read it. Got any good references for learning the hardert part of T-SQL queries...
March 31, 2015 at 7:00 pm
"CTEs cannot be nested" Are you sure? http://stackoverflow.com/questions/7306191/how-to-nest-cte-properly
and what's with all those NOLOCK hints?
https://www.simple-talk.com/sql/database-administration/grant-fritcheys-sql-server-howlers/
March 31, 2015 at 3:22 pm
I had this kind of fun just today on SSRS 2012. I went into the dataset and re-ran the query from within SSRS. that fixed it for some...
March 31, 2015 at 2:46 pm
I need to change the code so the report selects data 14 days before and 14 days after the selected date.
WHERE [DateColumn] BETWEEN DATEADD(days,-14,@DateParameter) AND DATEADD(days,14,@DateParameter)
not sure about the sequence...
March 31, 2015 at 2:29 pm
What are you trying to do? (Explain the business part, not the math.)
Can you give a really simple example? Do you have a table you're trying to join...
March 31, 2015 at 2:26 pm
Short answer - you need to turn this into a totals query and group by everything but the date. Get MAX(Date). Or use a subquery to return only...
March 31, 2015 at 10:57 am
Maybe it's the lack of coffee or something, but the basic matrix is simple, but getting the % of Internal at the bottom as a pain. (I'm starting to think...
March 31, 2015 at 10:54 am
make a copy of the report.
in the new copy (for the restricted folks), change the parameter to single value. (turn off Allow Multiple Values).
I'm pretty sure you can leave everything...
March 31, 2015 at 2:49 am
Finally dug up Itzik's book on T-SQL 2008...
-- from p.458 "Inside SQL Server 2008 T-SQL Querying" By Itzik Ben-Gan
SELECT 01.empID,
CONVERT(VARCHAR(7), o1.ordMonth, 121) AS toMonth,
o1.qty AS qtyThisMonth,
SUM(o2.qty) AS totalQty,
CAST(AVG(1 * o2.qty)...
March 31, 2015 at 2:47 am
Check out this article by Dwain Camps...
there's an example using 2008 that doesn't use windowing functions.
This is my attempt at applying what he wrote... maybe it's because it's stupid late,...
March 31, 2015 at 12:22 am
I would probably do it this way:
Package---(1,M)--Contains--(M,1)--Items
CREATE TABLE Contents (
PackageID INT NOT NULL,
ItemID INT NOT NULL,
Qty INT
FOREIGN KEY fkItemID ItemID REFERENCES Item(ItemID),
FOREIGN KEY fkPkgID PackageID REFERENCES Package(PackageID));
I'm assuming that the...
March 30, 2015 at 3:29 pm
To create a variable...
1. Under the Report menu, choose "Report Properties".
2. Click on the Variables Tab (in the left pane).
3. Click the Add button.
4. Give the variable a name.
5. click...
March 30, 2015 at 2:05 am
I created the variable to store the aggregate value to divide by. If you're doing "% of total" then you would store the total value in the variable, and...
March 29, 2015 at 11:40 pm
Viewing 15 posts - 2,581 through 2,595 (of 3,489 total)