SQL Server, Azure SQL Database, Amazon RDS & AWS, Oracle and IBM Help
An online community of DBAs, developers and data intelligence builders, with videos, articles, resources and online events for members and non-members.
Find out more >>
(Hannes du Preez) There are times that you need to access information from the previous row or next row from the current row. Here is a small trick that makes use of a CTE to get this information: