produce a result set for the report that shows a side-by-side comparison of the number and total amounts of payments made in Mike's and Jon's stores broken down by months. The resulting data set ...
これまで基本的なSQLやSQL JOINについて書きましたが、よく使われる複雑なクエリについて記載してなかったなと思ったのでこちらでまとめておきます。 クエリ結果から重複した値を除去したい場合にDISTINCTを使用します。 例えば、以下の従業員テーブルに ...