Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

LAG Function, to compare two rows

$
0
0
I need to have SQL look at the previous row and comare the previous row is a "Y" or an "N"
in the eligibility column.  I need to know WHERE the current row is a "N", but the row immediately above is a "Y" for the same   concat(compresse

Viewing all articles
Browse latest Browse all 3145

Trending Articles