Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ MINimal and MAXimal values | Aggregating
SQL Basics
セクション 3.  1
single

single

bookMINimal and MAXimal values

メニューを表示するにはスワイプしてください

Now it's time to talk about aggregate functions - functions that calculate some summary stats. Let's start with extremal summary stats - minimum and maximum values.

To find the minimum (or maximum) value in the column use MIN (or MAX) functions followed by column name. For example, we can find out the cheapest car with Automatic transmission.

123
SELECT MIN(price) FROM audi_cars WHERE transmission = 'Automatic'
copy

Please note, that unlike for DISTINCT function you need to use parentheses for MIN and MAX functions.

タスク

スワイプしてコーディングを開始

From the audi_cars table find out the price of the most expensive Diesel car (fueltype column).

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  1
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt