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.
注文番号と日付ごとに最低温度と最高温度が保存されているテーブルがあります。毎日の最低気温と最高気温を選びたいです。これは、SQL スクリプトを使用して行う必要があります。
以下のように、group by句を使用し、関数を集計する必要があります。minmax
group by
min
max
select date, min(temperature), max(temperature) from table group by date
date年、月、日(2012年1月11日)しかない場合に機能します。
date