You are on page 1of 7

3/3/23, 5:42 PM Clauses - Objectives: Attempt review

Dashboard / Courses / ITVAC Training / Database Management Systems / Clauses / Clauses - Objectives

Started on Friday, 3 March 2023, 1:31 PM


State Finished
Completed on Friday, 3 March 2023, 5:38 PM
Time taken 4 hours 6 mins

Question 1
Incorrect

Marked out of 1.00

How can we define the clause “FROM” in Mysql?

a. It defines the tables used by a query 

b. It defines the linking of tables in Mysql

c. It defines the tables used by a query & linking of tables in Mysql

d. None of the mentioned

Question 2
Correct

Marked out of 1.00

Which keyword is used for sorting the data in descending order in Mysql?

a. DESC 

b. ASC

c. ALTER

d. MODIFY

Question 3
Correct

Marked out of 1.00

Which keyword is used for sorting the data in ascending order in Mysql?

a. DESC

b. ASC 

c. ALTER

d. MODIFY

3.6.63.222/mod/quiz/review.php?attempt=300088&cmid=183 1/7
3/3/23, 5:42 PM Clauses - Objectives: Attempt review

Question 4
Correct

Marked out of 1.00

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

a. Group data by column values 

b. Group data by row values

c. Group data by column and row values

d. None of the mentioned

Question 5
Correct

Marked out of 1.00

Which clause is similar to “HAVING” clause in Mysql?

a. SELECT

b. WHERE 

c. FROM

d. None of the mentioned

Question 6
Correct

Marked out of 1.00

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

a. To filter out the row values 

b. To filter out the column values

c. To filter out the row and column values

d. None of the mentioned

Question 7
Correct

Marked out of 1.00

“COUNT” keyword belongs to which categories in Mysql?

a. Aggregate functions 

b. Operators

c. Clauses

d. All of the mentioned

3.6.63.222/mod/quiz/review.php?attempt=300088&cmid=183 2/7
3/3/23, 5:42 PM Clauses - Objectives: Attempt review

Question 8
Correct

Marked out of 1.00

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;

a. Aggregation of the field “name” of both table

b. Aggregation of the field “name” of table “department” 

c. Sorting of the field “name”

d. None of the mentioned

Question 9
Incorrect

Marked out of 1.00

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)>2;

a. Filter out all rows whose total emp_id below 2

b. Selecting those rows whose total emp_id>2 

c. Filter out all rows whose total emp_id below 2 & Selecting those rows whose total emp_id>2

d. None of the mentioned

Question 10
Correct

Marked out of 1.00

The GROUP BY statement is used in conjunction with the ............... to group the result-set by one or more columns.

a. Wildcards

b. Aggregate functions 

c. Date functions

d. Joins

3.6.63.222/mod/quiz/review.php?attempt=300088&cmid=183 3/7
3/3/23, 5:42 PM Clauses - Objectives: Attempt review

Question 11
Correct

Marked out of 1.00

“SELECT” clause cannot be used without which clause in Mysql?

a. FROM 

b. WHERE

c. ORDER BY

d. All of the mentioned

Question 12
Incorrect

Marked out of 1.00

What is the meaning of “SELECT” clause in Mysql?

a. Show me all Columns and rows

b. Show me all columns 

c. Show me all rows

d. None of the mentioned

Question 13
Correct

Marked out of 1.00

Is “GROUP BY” clause is similar to “ORDER BY” clause?

a. Yes

b. No 

c. Depends

d. None of the mentioned

Question 14
Correct

Marked out of 1.00

What is the meaning of “ORDER BY” clause in Mysql?

a. Sorting your result set using column data 

b. Aggregation of fields

c. Sorting your result set using row data

d. None of the mentioned

3.6.63.222/mod/quiz/review.php?attempt=300088&cmid=183 4/7
3/3/23, 5:42 PM Clauses - Objectives: Attempt review

Question 15
Incorrect

Marked out of 1.00

What is the significance of “ORDER BY” in the following MySQL statement?

SELECT emp_id, fname, lname


FROM person

ORDER BY emp_id;

a. Data of emp_id will be sorted

b. Data of emp_id will be sorted in descending order

c. Data of emp_id will be sorted in ascending order 

d. All of the mentioned

Question 16

Correct

Marked out of 1.00

What will be the order of sorting in the following MySQL statement?

SELECT emp_id, emp_name


FROM person

ORDER BY emp_id, emp_name;

a. Sorting {emp_id, emp_name} 

b. Sorting {emp_name, emp_id}

c. Sorting (emp_id} but not emp_name

d. None of the mentioned

3.6.63.222/mod/quiz/review.php?attempt=300088&cmid=183 5/7
3/3/23, 5:42 PM Clauses - Objectives: Attempt review

Question 17
Correct

Marked out of 1.00

If emp_id contain the following set {9, 7, 6, 4, 3, 1, 2}, what will be the output on execution of the following MySQL statement?

SELECT emp_id
FROM person

ORDER BY emp_id;

a. {1, 2, 3, 4, 6, 7, 9} 

b. {2, 1, 4, 3, 7, 9, 6}

c. {9, 7, 6, 4, 3, 1, 2}

d. None of the mentioned

Question 18

Incorrect

Marked out of 1.00

If emp_id contain the following set {-1, -2, 2, 3, -3, 1}, what will be the output on execution of the following MySQL statement?

SELECT emp_id
FROM person

ORDER BY emp_id;

a. {-3, -2, -1, 1, 2, 3}

b. {-1, 1, -2, 2, -3, 3} 

c. {1, 2, 3, -1, -2, -3}

d. None of the mentioned

Question 19

Correct

Marked out of 1.00

We can also use the GROUP BY statement on more than one column.

Select one:
True 

False

3.6.63.222/mod/quiz/review.php?attempt=300088&cmid=183 6/7
3/3/23, 5:42 PM Clauses - Objectives: Attempt review

Question 20
Incorrect

Marked out of 1.00

The HAVING clause is added to SQL because the WHERE keyword cannot be used with aggregate functions.

Select one:
True

False 

◄ Functions - Query Writing - IV

Jump to...

Go

3.6.63.222/mod/quiz/review.php?attempt=300088&cmid=183 7/7

You might also like