PrimeTimeTran
TagsSnippetsDSAProjectsAbout
Tags
Snippets
DSA
Projects
About

Window-functions

  • Published on
    September 2, 2025

    Lag Function: Access data in a previous row in the same result set without having to join the table to itself.

    databaseswindow-functionssqlpostgres
    How to use the SQL LAG window function to compare current and previous row values, with practical query and table output.
mailgithubfacebookyoutubelinkedin
Loi Tran
•
© 2025
•
Loi Tran - Tech, Finance, Sports & More