Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE VIEW
- view_wizard_deposits_with_expiration_date_before_1983_08_17
- AS
- SELECT
- CONCAT(first_name, ' ', last_name) AS wizard_name,
- deposit_start_date AS start_date,
- deposit_expiration_date AS expiration_date,
- deposit_amount AS amount
- FROM
- wizard_deposits
- WHERE
- deposit_expiration_date <= '1983-08-17'
- GROUP BY
- wizard_name,
- start_date,
- expiration_date,
- amount
- ORDER BY
- expiration_date;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement