adplus-dvertising

Welcome to the SQL Queries,Constraints and Triggers MCQs Page

Dive deep into the fascinating world of SQL Queries,Constraints and Triggers with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of SQL Queries,Constraints and Triggers, a crucial aspect of DBMS. In this section, you will encounter a diverse range of MCQs that cover various aspects of SQL Queries,Constraints and Triggers, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within DBMS.

frame-decoration

Check out the MCQs below to embark on an enriching journey through SQL Queries,Constraints and Triggers. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of DBMS.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of SQL Queries,Constraints and Triggers. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

SQL Queries,Constraints and Triggers MCQs | Page 7 of 17

Q61.
If we do want to eliminate duplicates, we use the keyword ______in the aggregate expression.
SELECT COUNT (____ ID)
FROM teaches
WHERE semester = ’Spring’ AND YEAR = 2010;
Discuss
Answer: (a).Distinct
Q62.
A Boolean data type that can take values true, false, and________
Discuss
Answer: (d).Unknown
Discuss
Answer: (a).SELECT DISTINCT course id
FROM SECTION
WHERE semester = ’Fall’ AND YEAR= 2009 AND
course id NOT IN (SELECT course id
FROM SECTION
WHERE semester = ’Spring’ AND YEAR= 2010);
Q64.
The phrase “greater than at least one” is represented in SQL by _____
Discuss
Answer: (d).> some
Discuss
Answer: (a).SELECT course id
FROM SECTION AS S
WHERE semester = ’Fall’ AND YEAR= 2009 AND
EXISTS (SELECT *
FROM SECTION AS T
WHERE semester = ’Spring’ AND YEAR= 2010 AND
S.course id= T.course id);
Q66.
This statement is erroneous because
SELECT dept_name, ID, avg (salary)
FROM instructor
GROUP BY dept_name;
Discuss
Answer: (b).Dept_id should not be used in group by clause
Q67.
SQL applies predicates in the _______ clause after groups have been formed, so aggregate functions may be used.
Discuss
Answer: (b).With
Q68.
Aggregate functions can be used in the select list or the_______clause of a select statement or subquery. They cannot be used in a ______ clause.
Discuss
Answer: (b).Having, where
Q69.
The ________ keyword is used to access attributes of preceding tables or subqueries in the from clause.
Discuss
Answer: (b).Lateral
Q70.
Which of the following creates temporary relation for the query on which it is defined ?
Discuss
Answer: (a).With

Suggested Topics

Are you eager to expand your knowledge beyond DBMS? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!