SQL - Advanced Window Functions
You want to compare each employee's salary with the salary of the employee hired immediately before them. Which query correctly uses
LAG assuming hire_date exists?LAG assuming hire_date exists?hire_date.LAG(salary) OVER (ORDER BY hire_date), which correctly fetches previous salary by hire date order.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions