Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
FROM 句のサブクエリから作成されたエイリアスを、where 句の 2 番目のサブクエリで参照できますか?
Select x FROM ((SELECT x,y FROM A) UNION (SELECT x,y FROM B) UNION (SELECT x,y FROM C)) AS newAlias WHERE y IN (SELECT MAX(y) FROM newAlias)