2
select *
from other table inner join
(
select Count(*),
F1,F2,F3
from Table
group by F1,F2,F3
) on F1 = OtherF
关键字'on'附近的语法错误。ms sql错误:关键字'on'附近的语法不正确
select *
from other table inner join
(
select Count(*),
F1,F2,F3
from Table
group by F1,F2,F3
) on F1 = OtherF
关键字'on'附近的语法错误。ms sql错误:关键字'on'附近的语法不正确
你再选择需要进行别名:
select *
from other AS o
inner join (select Count(*), F1,F2,F3
from Table
group by F1,F2,F3) AS x on F1 = o.OtherF
您需要别名子查询
select * from other table inner join (select Count(*), F1,F2,F3 from Table group by F1,F2,F3) s on s.F1 = OtherF