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

Q51.
If the attribute phone number is included in the relation all the values need not be entered into the phone number column . This type of entry is given as
Discuss
Answer: (c).Null
Q52.
The predicate in a where clause can involve Boolean operations such as and.The result of true and unknown is_______ false and unknown is _____ while unknown and unknown is _____
Discuss
Answer: (d).Unknown, false, unknown
Q53.

This SQl query selects
SELECT name
FROM instructor
WHERE salary IS NOT NULL;
Selects
Discuss
Answer: (b).Tuples with no null values
Q54.
In a employee table to include the attributes whose value always have some value which of the following constraint must be used ?
Discuss
Answer: (b).Not null
Q55.
Using the ______ clause retains only one copy of such identical tuples.
Discuss
Answer: (d).Distinct
Q56.


Some of these insert statements will produce an error. Identify the statement.
CREATE TABLE employee (id INTEGER,name VARCHAR(20),salary NOT NULL);
INSERT INTO employee VALUES (1005,Rach,0);
INSERT INTO employee VALUES (1007,Ross, );
INSERT INTO employee VALUES (1002,Joey,335);
Discuss
Answer: (c).Insert into employee values (1007,Ross, );
Q57.
You attempt to query the database with this command:

SELECT nvl (100 / quantity, NONE)
FROM inventory;

Why does this statement cause an error when QUANTITY values are null?
Discuss
Answer: (a).The expression attempts to divide by a null value
Q58.
The result of _____unknown is unknown.
Discuss
Answer: (d).Not
Q59.
Aggregate functions are functions that take a ___________ as input and return a single value.
Discuss
Answer: (a).Collection of values
Q60.
Which of the following should be used to find the mean of the salary ?
SELECT __________
FROM instructor
WHERE dept name= ’Comp. Sci.’;
Discuss
Answer: (b).Avg(salary)
Page 6 of 17

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!