U23CS404-DBMS and U23OCS02-DBT-Question Bank
U23CS404-DBMS and U23OCS02-DBT-Question Bank
1. BT-2 Understand
2. BT-1 Remember
multi-valued
• Theta join
• Natural join
19. Outer join − It is further classified into following types − BT-1 Remember
PQS + = PQSRT
30. BT-2 Understand
Since the closure of PQS contains all the attributes of R,
hence PQS is Candidate Key.
there will be only one candidate key PQS
Part-B (8 Questions)
Bloom's
S.No Question Taxonomy Cognizance Level
Level
Discuss the main characteristics of the database approach and
1. how it differs from traditional file systems. BT-2 Understand
5. Describe the types of DBMS architecture with a neat sketch. BT-2 Understand
SELECT ProductName
FROM Product
WHERE UnitPrice BETWEEN 10
AND 20
ORDER BY UnitPrice
Mention the various aggregate functions in SQL.
Aggregate functions used to combine the result of a group into a
single such as COUNT, MAX, MIN, AVG, SUM.
• SUM(): Returns the sum or total of each group. Understand
15. BT-2
• COUNT(): Returns the number of rows of each group.
• AVG(): Returns the average and mean of each group.
• MIN(): Returns the minimum value of each group.
• MAX(): Returns the minimum value of each group.
How is DML different from DDL?
Answer:
WITH RECURSIVE
cte ( node, path )
AS
( SELECT node, cast ( 1 as char(30) )
FROM bst WHERE parent IS NULL
UNION ALL
SELECT bst.node, CONCAT ( cte.path, '-->', bst.node )
FROM cte JOIN bst ON cte.node = bst.parent
)
SELECT * FROM cte ORDER BY node;
Write a SQL query who were born on 2 given dates (Nov 1,2017
& Dec 31, 2017).
Part-B (8 Questions)
Blooms
S.No Question Taxonomy Cognizance Level
Level
Create a table for the data provided and input the values for the
1. table as shown below, and answer the given questions with BT-3 Apply
relevant queries.
ii. Find the names of employees who have borrowed all books
published by McGraw – Hill.
iii. Find the names of employees who have borrowed more than
five different books published by McGraw-Hill?
iv. For each publisher, find the names of employees who have
borrowed?