Mastering LAST_VALUE Function with STRUCTS