0
如何爲我的選擇查詢進行連接查詢,如下所示。如何爲此選擇查詢進行加入
"select a,b from table1 where d in
(select d from table2 where column1 ='value1' and column2 > '2');"
如何爲我的選擇查詢進行連接查詢,如下所示。如何爲此選擇查詢進行加入
"select a,b from table1 where d in
(select d from table2 where column1 ='value1' and column2 > '2');"
SELECT DISTINCT a, b
FROM table1 t1
JOIN table2 t2 ON t1.d = t2.d
WHERE t2.column1 = 'value1' AND t2.column2 = 'value2'
做我的功課! – Mihai