0
我对此很陌生,请让我知道我做错了什么。谢谢。休眠标准子查询加入
我花了几个小时找到解决方案,但找不到任何。
认为我有2个表所示:
TableOne
column1(PK) column2(PK) column3 column4
A 1 10
A 2 9
TableTwo
column5(PK) column6 column7 column8
A
是否有任何休眠标准等同于:
select * from tableone t1, tableone t11,
(select column1, count(*) as COUNT from tabletwo group by column1) t2
where t1.column1 = t11.column1
and t1.column2 = 1
and t11.column2 = 2
and t11.column3 = t2.COUNT
and t11.column1 = t2.column1;
谢谢你们!