关联查询

来源:互联网 发布:js简易计算器 编辑:程序博客网 时间:2024/05/21 11:11
select aq.informid, aq.title, count(a.itemid) count
  from AQ2022 aq
  left join aq2024 a
    on aq.informid = a.informid
 where 1 = 1
   and aq.title is not null
 group by aq.informid, aq.title
 order by count(a.itemid)
原创粉丝点击