Files
sql_advanced/lab2-8-test/task8.sql
T
Vitalii Litvinchuk 6deed0469a first commit
2026-05-04 23:15:09 +03:00

15 lines
837 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#################################################
################ Завдання 8 ###################
--------------------------------------------------
1. Створіть збережену процедуру з іменем 'GetBookingsData'. Процедура повинна містити часовий
параметр 'InputDate', який дозволить вивести усю інформацію про бронювання на вказуну користувачем дату.
2. Після виконання запиту викличте створену процедуру зі значенням параметра '2021-11-13'
create procedure GetBookingsData(InputDate date)
begin
select * from Bookings where BookingDate = InputDate;
end
call GetBookingsData ('2021-11-14');
select * from Bookings;