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

Explore more Topics under DBMS

Q31.
SELECT * FROM employee WHERE dept_name="Comp Sci";

In the SQL given above there is an error . Identify the error .
Discuss
Answer: (c).β€œComp Sci”
Q32.
Which one of the following has to be added into the blank to select the dept_name which has Computer Science as its ending string ?
SELECT emp_name
FROM department
WHERE dept_name LIKE ’ _____ Computer Science’;

a.

%

b.

_

c.

||

d.

$

Discuss
Answer: (a).%
Q33.
’_ _ _ ’ matches any string of ______ three characters. ’_ _ _ %’ matches any string of at ______ three characters.
Discuss
Answer: (b).Exactly, Atleast
Q34.
By default, the order by clause lists items in ______ order.
SELECT name
FROM instructor
WHERE dept name = ’Physics’
ORDER BY name;
Discuss
Answer: (d).Ascending
Q35.
To display the salary from greater to smaller and name in ascending order which of the following options should be used ?
SELECT *
FROM instructor
ORDER BY salary ____, name ___;
Discuss
Answer: (c).Desc, Asc
Discuss
Answer: (a).SELECT name
FROM instructor
WHERE salary BETWEEN 90000 AND 100000;
Discuss
Answer: (b).All attributes of instructor are selected on the given condition
Q38.
In SQL the spaces at the end of the string are removed by _______ function .
Discuss
Answer: (c).Trim
Q39.
_____ operator is used for appending two strings.

a.

&

b.

%

c.

||

d.

_

Discuss
Answer: (c).||
Q40.
The union operation is represented by
Discuss
Answer: (b).U

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!