This also gives them the seq_nr (or CALL NR if we're tracking that stuff).
The select max(seq) works only in a low-hit environment.
For more accurate data retrieval, I'd use max() PLUS the passed in key fields.