Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

AGGREGATE FUNCTION IN SQL

star
star
star
star
star
Last updated over 5 years ago
10 Nsɛmmisa
Hyɛ no nsow a efi ɔkyerɛwfo no hɔ:

SQL AGGREGATE FUNCTION TEST

1
1
1
1
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

Q-1 What is the meaning of “GROUP BY” clause in Mysql?

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

Q-2 Which clause is similar to “HAVING” clause in Mysql?

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

Q-3 What is the meaning of “HAVING” clause in Mysql?

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

Q-4 “COUNT” keyword belongs to which categories in Mysql?

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

Q-5 Which among the following belongs to an “aggregate function”?

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

Q-6 Which of the following belongs to an “aggregate function”?

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

q-7 Which clause is used with an “aggregate functions”?

Asemmisa {{asɛmmisaAhyɛnsode}}
8.

Q-8 What is the significance of the statement “GROUP BY d.name” in the following MySQL statement?

SELECT d.name, COUNT (emp_id) emp_no FROM department d INNER JOIN Employee e ON d.dept_id=e.emp_id GROUP BY d.name

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

Q-9 What is the significance of the statement “HAVING COUNT (emp_id)>2” in the following MySQL statement?

SELECT d.name, COUNT (emp_id) emp_no FROM department d INNER JOIN Employee e ON d.dept_id=e.emp_id GROUP BY d.name HAVING COUNT (emp_id)>

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

Q-10 A Group By clause can use column aliasing.