Update for 28-02-22 17:00
This commit is contained in:
parent
ac2b63ba57
commit
d30bd007d5
@ -97,6 +97,18 @@ If we want to find an average,
|
||||
|
||||
`SELECT AVG(price) FROM products`
|
||||
|
||||
This same principle applies for
|
||||
|
||||
* `MAX`
|
||||
* `MIN`
|
||||
|
||||
=== GROUP BY ===
|
||||
|
||||
`GROUP BY` allows us to combine with the above math and `COUNT` functions by
|
||||
grouping totals based upon some other row.
|
||||
|
||||
`SELECT Team, COUNT(*) FROM Players GROUP BY Team`
|
||||
|
||||
== Views ==
|
||||
|
||||
A view can be created with the following command
|
||||
|
Loading…
Reference in New Issue
Block a user