我有這樣一個SQL語句:變換SELECT statememnt加入
SELECT a.status_id,
(SELECT batch_name
FROM pf_req_batch
WHERE batch_id = (SELECT batch_id
FROM pf_m_req_batch
WHERE request_id = 282)) AS BATCH_NAME
FROM pf_request
WHERE request_id = 282;
我需要使用JOIN來改變它。幫助,PLZ!
不確定你的意思是...你需要加入2張桌子嗎? – DiederikEEn