Professional Documents
Culture Documents
Clauses - Objectives - Attempt Review
Clauses - Objectives - Attempt Review
Dashboard / Courses / ITVAC Training / Database Management Systems / Clauses / Clauses - Objectives
Question 1
Incorrect
Question 2
Correct
Which keyword is used for sorting the data in descending order in Mysql?
a. DESC
b. ASC
c. ALTER
d. MODIFY
Question 3
Correct
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
Question 5
Correct
a. SELECT
b. WHERE
c. FROM
Question 6
Correct
Question 7
Correct
a. Aggregate functions
b. Operators
c. Clauses
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
What is the significance of the statement “GROUP BY d.name” in the following MySQL statement?
ON d.dept_id=e.emp_id
GROUP BY d.name;
Question 9
Incorrect
What is the significance of the statement “HAVING COUNT (emp_id)>2” in the following MySQL statement?
GROUP BY d.name
c. Filter out all rows whose total emp_id below 2 & Selecting those rows whose total emp_id>2
Question 10
Correct
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
a. FROM
b. WHERE
c. ORDER BY
Question 12
Incorrect
Question 13
Correct
a. Yes
b. No
c. Depends
Question 14
Correct
b. Aggregation of fields
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
ORDER BY emp_id;
Question 16
Correct
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
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}
Question 18
Incorrect
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;
Question 19
Correct
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
The HAVING clause is added to SQL because the WHERE keyword cannot be used with aggregate functions.
Select one:
True
False
Jump to...
Go
3.6.63.222/mod/quiz/review.php?attempt=300088&cmid=183 7/7