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()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What SQL command allows us to compute the sum for any specified attribute? What is the syntax?

A

SUM()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What SQL command allows us to determine the average value of an attribute? What is the syntax?

A

AVG()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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 ...
How well did you know this?
1
Not at all
2
3
4
5
Perfectly