主题:一个表用查询,一个表用统计函数怎么连接起来
我有一个用户表:
查询某个人用:
select*from userinfo where user_id=78
用户发言表
统计用户发言
select count(*) from userfa where user_id=78
但是怎么把这两个查询语句连接起来呢。
想半天 用inner join不行啊。因为有统计函数。到底因该怎么连起来呢。
查询某个人用:
select*from userinfo where user_id=78
用户发言表
统计用户发言
select count(*) from userfa where user_id=78
但是怎么把这两个查询语句连接起来呢。
想半天 用inner join不行啊。因为有统计函数。到底因该怎么连起来呢。