Advertisement
horozov86

10. Wizard View - ОК

Sep 30th, 2023
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 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