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

Q131.
Any recursive view must be defined as the union of two subqueries: a _______ query that is nonrecursive and a __________ query.
Discuss
Answer: (a).Base, recursive
Q132.
Ranking of queries is done by which of the following ?
Discuss
Answer: (b).Order by
Discuss
Answer: (b).The rank order continues by leaving one rank in the middle
Q134.
The __________ function that does not create gaps in the ordering.
Discuss
Answer: (d).Dense_rank()
Q135.
SELECT ID, GPA
FROM student grades
ORDER BY GPA
____________;

Inorder to give only 10 rank on the whole we should use
Discuss
Answer: (a).Limit 10
Q136.
If there are n tuples in the partition and the rank of the tuple is r , then its ________ is defined as (r −1)/(n−1) .
Discuss
Answer: (c).Percent_rank
Q137.
Inorder to simplify the null value confusion in the rank function we can specify
Discuss
Answer: (d).Either Nulls last or first
Q138.
Suppose we are given a view tot credits (year, num credits) giving the total number of credits taken by students in each year.The query that computes averages over the 3 preceding tuples in the specified sort order is
Discuss
Answer: (a).SELECT YEAR, avg(num credits)
OVER (ORDER BY YEAR ROWS 3 preceding)
AS avg total credits
FROM tot credits;
Q139.
The functions which construct histograms and use buckets for ranking is
Discuss
Answer: (c).Ntil()
Q140.
The command ________________ such tables are available only within the transaction executing the query, and are dropped when the transaction finishes.
Discuss
Answer: (b).Create temporary table

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!