Advertisement
horozov86

10. Wizard View

Sep 30th, 2023
896
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. CREATE VIEW
  2.     view_wizard_deposits_with_expiration_date_before_1983_08_17
  3. AS
  4. SELECT
  5.     CONCAT(first_name, ' ', last_name) AS wizard_name,
  6.     deposit_start_date AS start_date,
  7.     deposit_expiration_date AS expiration_date,
  8.     deposit_amount AS amount
  9. FROM
  10.     wizard_deposits
  11. WHERE
  12.     deposit_expiration_date <= '1983-08-17'
  13. GROUP BY
  14.     wizard_name,
  15.     start_date,
  16.     expiration_date,
  17.     amount
  18. ORDER BY
  19.     expiration_date;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement