TSQL Challenge #11 Using Recursive CTE
Here is my proposal about the TSQL Challenge #11.
Given a product table, and a coupon table, we have to find within one or two coupons which combination gives the best discount, with additional rules :
the discount price can not be less than 70% of the original price
the total amount of the discount can [...]