There are situations where the only entry point is a payroll code. In this case, the need was to find a sample ID for a selection of codes. Once we have the codes, it becomes possible to identify the associated triggering rules.
It was worth taking a few minutes to try and find an SQL query that does the job…