Viewing 15 posts - 1,711 through 1,725 (of 4,085 total)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 4, 2017 at 12:26 pm
You need to include your table name in the ORDER BY clause in windowed function in your CTE. I'm not sure where to get the results you need.
Also,...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 4, 2017 at 11:44 am
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 2, 2017 at 1:57 pm
I think the reason that no one has done it, is because the best approach is to use SSRS and export to Word.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 2, 2017 at 10:55 am
It's because when you moved the Targets JOIN clause, you moved the corresponding ON clause to the end of the query, which means that that join will be evaluated last...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
May 2, 2017 at 10:45 am
When posting job announcements, it would help if you included where the job was located, preferably in the title.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 21, 2017 at 1:15 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 21, 2017 at 12:45 pm
This is best done using a reporting tool like SSRS (which can even export directly to Excel).
If that doesn't work, then you will need to use a CROSSTAB...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 21, 2017 at 12:43 pm
I believe that this gives the correct results. It's also requires far fewer reads than Chanthor's version.
;
WITH starts AS
(
SELECT *,
CASE WHEN hc.hourly...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 20, 2017 at 5:09 pm
The previous solutions require two table scans. Here is a solution that requires only one table scan. It does require that the appropriate index (AccountNumber, ProcessDateShort DESC) be in place...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 20, 2017 at 3:49 pm
erswig - Wednesday, April 19, 2017 1:09 PMhey Sergiy
This is a professional site. Please keep it so.
Also, this thread is 8 years...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 19, 2017 at 2:13 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 19, 2017 at 1:45 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 18, 2017 at 1:02 pm
You misunderstood. If you define your groups on the individual persons, you will get one record FOR EACH PERSON, not one record for a specific person.
Part of the...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 18, 2017 at 12:38 pm
Reported as spam.
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
April 18, 2017 at 12:28 pm
Viewing 15 posts - 1,711 through 1,725 (of 4,085 total)