select f.f_id, f.f_time, f.formulanm, f.formula, f.formula_desc,count(p.f_pid) as total from b_formula f
left join b_parameter p
on f.f_id = p.f_pid where f.formulanm like '%%'
group by f.f_id, f.f_time, f.formulanm, f.formula, f.formula_desc order by f.f_time descgroup by 跟上所有要显示的字段即可oracle两表联查,分组统计
最新推荐文章于 2024-04-02 16:44:21 发布
本文介绍了一种使用SQL进行复杂查询的方法,通过左连接和分组等操作实现对数据的有效筛选和统计,适用于需要处理大量参数及公式场景。
1458

被折叠的 条评论
为什么被折叠?



