Advertisement
horozov86

10. Wizard View

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