Files
databases/view2.sql

16 lines
355 B
SQL
Raw Permalink 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.

-- Запрос с использованием view
select
srsc.id_sportsman,
s.name,
srsc.pr_count,
srsc.ss_count
from
sportsman_requests_series_count as srsc
join sportsman as s on srsc.id_sportsman = s.id_sportsman
where
s.gender = 'Мужчина'
and s.club = 'ЛК Парадокс Лучника'
order by
srsc.pr_count desc
limit 10;