https://acadecology.ru/video/16-how-to-sql-essential-kak-sozdat-khranimuyu-proceduru-i/