mirror of
https://github.com/preservim/tagbar.git
synced 2025-02-21 10:05:40 +08:00
18 lines
526 B
SQL
18 lines
526 B
SQL
select user_id, count(*) as how_many
|
|
from bboard
|
|
where not exists (select 1 from
|
|
bboard_authorized_maintainers bam
|
|
where bam.user_id = bboard.user_id)
|
|
and posting_time + 60 > sysdate
|
|
group by user_id
|
|
order by how_many desc;
|
|
|
|
select user_id, count(*) as how_many
|
|
from bboard
|
|
where posting_time + 60 > sysdate
|
|
group by user_id
|
|
having not exists (select 1 from
|
|
bboard_authorized_maintainers bam
|
|
where bam.user_id = bboard.user_id)
|
|
order by how_many desc;
|