peshopbs2

Untitled

Dec 7th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. SELECT deposit_group, is_deposit_expired,
  2. AVG(deposit_interest) AS average_interest
  3. FROM wizzard_deposits
  4. WHERE deposit_start_date >= '1985-01-01'
  5. GROUP BY deposit_group, is_deposit_expired
  6. ORDER BY deposit_group DESC, is_deposit_expired ASC
Advertisement
Add Comment
Please, Sign In to add comment