sql - Best way to structure table for commission reports -
i want have table track commissions due our wireless sales. each plan pays different commission, not problem. our reconciliation carriers don't pay (they may miss line or 2).
the problem occurs when carriers change how pay commissions. want able go , see there 4 lines not paid in january @ commission rate x. feb same types of plans sold commission rates x-10.
if change rate in commission table plan, when go pull data january report incorrect commission rates.
i have table sales set date stamp thinking can cross reference somehow.
hope followed this.
i looking best way structure this.
you should "stamp" record commission rate. either stamp actual rate every record... or keep commission id , put each record.
Comments
Post a Comment