前回「複数の表からデータを取り出す方法」では、結合の種類と特徴、構文について学習しました。 今回は、以下の項目を確認します。 副問い合わせの基礎 副問い合わせで使用する比較演算子 副問い合わせの構文 ■例題1 EMPLOYEES表からLAST_NAMEと一番高い給与(SALARY)を検索しているSQL文をすべて選択してください。 a.select last_name,salary from employees where salary=(select salary from employees where salary=(select max(salary) from employees)); b.select last_name,max(salary) from employees; c.select last_name,salary from employees where salar
![SQLの副問い合わせを使いこなす](https://cdn-ak-scissors.b.st-hatena.com/image/square/6e84fc6ab06f31b2e64248cbfc92fe06deb5bab5/height=288;version=1;width=512/https%3A%2F%2Fimage.itmedia.co.jp%2Fimages%2Flogo%2F1200x630_500x500_ait.gif)