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 8 of 17

Q71.
In the query given above which one of the following is a temporary relation ?
WITH max_budget (VALUE) AS
(SELECT MAX(budget)
FROM department)
SELECT budget
FROM department, max_budget
WHERE department.budget = MAX budget.value;
Discuss
Answer: (d).Max_budget
Discuss
Answer: (c).Join tables
Q73.
Which of the following is not a aggregate function ?
Discuss
Answer: (c).With
Q74.
A Delete command operates on ______ relation.
Discuss
Answer: (a).One
Discuss
Answer: (a).Deletes a particular tuple from the relation
Discuss
Answer: (d).Delete from instructor;
Discuss
Answer: (b).INSERT INTO instructor
SELECT ID, name, dept name, 18000
FROM student
WHERE dept name = ’Music’ AND tot cred > 144;
Q78.
Which of the following deletes all tuples in the instructor relation for those instructors associated with a department located in the Watson building which is in department relation.
Discuss
Answer: (c).DELETE FROM instructor
WHERE dept_name IN (SELECT dept name
FROM department
WHERE building = ’Watson’);
Q79.
UPDATE instructor
_____ salary= salary * 1.05;

Fill in with correct keyword to update the instructor relation.
Discuss
Answer: (b).Set
Q80.
_________ are useful in SQL update statements,where they can be used in the set clause.
Discuss
Answer: (d).Scalar subqueries

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!