I am not sure why LastValue in the result set of Example A shows the hire date of the last employee based on Rate. Because there is a "PARTITION BY Department", shouldn't the result set show the hire date of the last employee based on Department?
↧