Viewing 8 posts - 1 through 8 (of 8 total)
preacha (4/16/2015)
ie...
TICKETID, REPORTDATE
a,17/04/15
a,17/04/15
a,19/02/14
b,12/02/15
b,12/02/15
b,12/02/15
c,01/01/15
c,01/02/15
should return
a,17/04/15
a,19/02/14
c,01/01/15
c,01/02/15
Kinda like the PREVIOUS() function in srss... example was to highlight...
April 17, 2015 at 1:27 am
Preacha, probably you could spend some time giving more information about the source data and the desired result.
Telling "here is a query that doesn't work as I want it to",...
April 16, 2015 at 1:32 am
Very interesting Post.
Basically, the "expected" behaviour for LAST_VALUE is achievable without ROWS clause, just specifying DESC in the ORDER BY clause of the FIRST_VALUE aggregate.
SELECT
...
April 14, 2015 at 4:01 am
brymen (3/25/2014)
March 25, 2014 at 6:56 am
rhydian (1/20/2014)
SELECT PR.id, PR.ProfessorName, ClassName, ClassYear, ClassSemester
FROM Professor PR
LEFT JOIN
(
SELECT ProfessorID, ClassName, ClassYear, ClassSemester
FROM Class
WHERE...
January 20, 2014 at 4:38 am
Kenneth.Fisher (1/19/2014)
January 20, 2014 at 1:35 am
Look at my previous post for an explanation: it's a matter of order of execution.
Basically, what happens (from a logical point), is this:
1. A cartesian product of the two tables...
January 19, 2014 at 3:43 pm
It seems to me that a lot of people is not getting really HOW a query is executed.
But that should be querying 101.
I would just point out the T-SQL Querying...
January 17, 2014 at 4:47 am
Viewing 8 posts - 1 through 8 (of 8 total)