Week 9 Flashcards
1
Q
What SQL command allows us to tally the number of non-null values of an attribute? What is the syntax?
A
COUNT()
2
Q
What SQL command allows us to determine the lowest and highest values of an attribute? What is the syntax?
A
MIN()
or
MAX()
3
Q
What SQL command allows us to compute the sum for any specified attribute? What is the syntax?
A
SUM()
4
Q
What SQL command allows us to determine the average value of an attribute? What is the syntax?
A
AVG()
5
Q
What is the function of the GROUP BY command? What is its syntax?
A
Allows us to group rows together for data collection rather than using a whole table.
SELECT ... FROM ... WHERE ... GROUP BY ... HAVING ... ORDER BY ...