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;
謝謝你們!