Viewing 15 posts - 2,881 through 2,895 (of 3,396 total)
Sounds like you're using a tablix instead of a matrix, which it sounds like what you should be using. If you did this with a matrix, then the month...
June 12, 2014 at 10:55 am
Yes. Instead of just this:
;WITH CTE AS
(SELECT
row = ROW_NUMBER() OVER(PARTITION BY custID ORDER BY (Geography::Point(geo.latitude, geo.longitude, 4326).STDistance(geography::Point(prp.latitude,prp.longitude, 4326))/1609.34) asc),
ld.custID
prp.property_name,
distance_miles = Geography::Point(COALESCE(geo.latitude,0), COALESCE(geo.longitude,0), 4326).STDistance(Geography::Point(COALESCE(prp.latitude,0),COALESCE(prp.longitude,0), 4326))/1609.34
FROM
...
You add a parameter...
June 12, 2014 at 9:46 am
I think you have to do the TOP in the stored procedure, not in SSRS. If you can do it in SSRS, I have no idea how.
SELECT TOP (@NumRecords)...
June 12, 2014 at 9:13 am
If you had a column in a table for the Category that indicated if it were a debit or credit. then it would be really easy:
create a calculated column, I'll...
June 11, 2014 at 11:29 am
Can you explain what the trigger was supposed to accomplish? I didn't write your code, so I'm not sure what it's intended to do. If we had that,...
June 7, 2014 at 7:06 pm
June 6, 2014 at 9:48 pm
Which was what? use an aggregate function in a control at the bottom of the report?
June 6, 2014 at 3:59 pm
Yeah, answering based on flawed sample data will do that to you...
June 5, 2014 at 11:37 am
It looks like this works:
SELECT MedRecNum, VisitID, VisitDate, MAX(Answer) AS MaxAns
FROM
(SELECT 123 AS MedRecNum,7777 As VisitID,'03-14-14' AS VisitDate,1 As Answer
UNION ALL
SELECT 123,7777,'03-14-14',0
UNION ALL
SELECT 123,8888,'05-21-14',0
UNION ALL
SELECT 123,8888,'05-21-14',0
UNION ALL
SELECT 456,3333,'03-20-14',1
UNION...
June 5, 2014 at 9:49 am
Oh, I'm sure. Gail's was just the first I remembered. And if the boss can't take their word for it then all bets are off...
June 5, 2014 at 9:35 am
Not sure what to say. If you dig around here even a little, you'll find Gail Shaw's explanation of what NOLOCK really does. You might need to make...
June 5, 2014 at 8:56 am
I think he's talking about something more like this, but this is PowerView in Excel 2013...
http://office.microsoft.com/en-us/excel-help/maps-in-power-view-HA103005792.aspx
June 4, 2014 at 8:16 pm
Luis,
Outer apply... I should have figured. Still trying to get my head around that one... I mean, I know what it does, but remembering to use it... I...
June 4, 2014 at 12:11 pm
Viewing 15 posts - 2,881 through 2,895 (of 3,396 total)