8: WITH Queries / Common Table Expressions
- The questions I want answered are:
- Which campaigns are currently active, expired or pending?
- Has the user already participated in any of those campaign?
- If it's a sweepstake, how many tickets does the user own?
- How many tickets have been issued in total?