Viewing 15 posts - 2,956 through 2,970 (of 3,480 total)
If I use the same column names in my underlying database tables, is it possible to use them in an existing report to refresh data for new quarter without wiping...
June 12, 2014 at 11:50 pm
I would like to call other reports based upon selections that users make and/or possibly calling the other reports based on values stored in a table in sql server 2008...
June 12, 2014 at 10:13 pm
Does this work for you? (Seems not).
Set up some tables/data for folks to use...
USE TempDB;
GO
CREATE TABLE #WorkHours (
ID int
, PersonnelNo int
, WeekEnding date
, WorkedHours decimal(4,2)
, ContractHours decimal(4,2)
);
Insert some...
June 12, 2014 at 6:51 pm
Thanks, Sean... that's what I was thinking!
June 12, 2014 at 1:00 pm
Okay, you can filter your dataset so that you can only see the current year.
SELECT <column list>
FROM <table>
WHERE YEAR([SomeDate])=YEAR(GetDate())
(Not sure that's going to perform well, but one problem at a...
June 12, 2014 at 12:42 pm
I would think you could use this article[/url] and use a job to write daily to a table... You could just need to grab the date the records were...
June 12, 2014 at 11:28 am
I must be getting better at this! <g>
I don't think you need most of this in your query:
SELECT d.name, a.dealer_code, b.last_name, b.city, b.state, b.phone
, COUNT(CASE WHEN MONTH(c.Funded_date) = 1 THEN...
June 12, 2014 at 11:21 am
If you're using SQL 2012, you can use LAG:
SELECT Category
, Code AS CurrCode
, LAG(Code) OVER (ORDER BY Category, StartDate) PrevCode
, CASE WHEN LAG(Code) OVER (ORDER BY Category, StartDate)<>Code THEN 'Changed'...
June 12, 2014 at 11:16 am
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
Viewing 15 posts - 2,956 through 2,970 (of 3,480 total)