About this tutorial
Return one current coupon per instrument
This tutorial shows how to rank coupon records within each instrument and keep only the most relevant row.
The key technique is the ROW_NUMBER() analytic function with PARTITION BY and ORDER BY, a pattern that is useful far beyond coupon data.
