- select info_id,class_id,title,author,readcount,replycount,newreplyman from
(
select info_id,class_id,title,author,read_count as readcount,
(select nvl(count(reply_info_id),0) from fnms_reply_info where fnms_reply_info.info_id =tb1.info_id )
as replycount,
(select * from (select fnms_reply_info.truename from fnms_reply_info,fnms_release_info tb2 where fnms_reply_info.info_id = tb2.info_id order by fnms_reply_info.create_date desc) where RowNum<=1)
as newreplyman
from fnms_release_info tb1 where tb1.class_id='100100100'
)
Oracle SQL语句--查询多个表
最新推荐文章于 2019-07-18 08:15:31 发布
本文介绍了一种复杂的SQL查询语句,该查询从多个表中提取信息并进行聚合统计,包括文章的阅读次数、回复次数以及最新回复人的姓名。通过对这些数据的处理,可以有效地分析论坛或社区的活跃度。
1843

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



