From the items_ordered table, select the item, maximum price, and minimum price for each specific item in the table.
SELECT item, MAX(price), MIN(price)FROM items_orderedGROUP BY item;
SELECT item, MAX(price), MIN(price)FROM items_orderedGROUP BY item;
MIN
|
returns the smallest value in a
given column
|
MAX
|
returns the largest value in a
given column
|
SUM
|
returns the sum of the numeric
values in a given column
|
AVG
|
returns the average value of a
given column
|
COUNT
|
returns the total number of values
in a given column
|
COUNT(*)
|
returns the number of rows in a
table
|