summaryrefslogtreecommitdiff
path: root/extras/appengine/examples/subquery2.sql
blob: 6c00a879344da913b05472a7f5117d905b111276 (plain)
1
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;