0% found this document useful (0 votes)
3 views

DBMS_QuestionBank_IA2

The document is a question bank for the Database Management Systems course at Atria Institute of Technology, covering various topics such as SQL languages, normalization, relational schemas, and database queries. It includes a range of questions from explaining concepts to writing SQL code for specific scenarios. The questions are categorized by Bloom's Taxonomy levels and course outcomes.

Uploaded by

shaikshandhani91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

DBMS_QuestionBank_IA2

The document is a question bank for the Database Management Systems course at Atria Institute of Technology, covering various topics such as SQL languages, normalization, relational schemas, and database queries. It includes a range of questions from explaining concepts to writing SQL code for specific scenarios. The questions are categorized by Bloom's Taxonomy levels and course outcomes.

Uploaded by

shaikshandhani91
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Atria Institute of Technology, Bangalore

Dept of CSE
Question Bank

Semester - IV Subject Code &Name : BCS403 -Database management Systems

Date: 23.04.2025 Faculty- Prof. Harsha N

Questions BTL CO

1) Explain the different types of SQL languages and their purposes L2 3


with suitable .

2) List and brief basic data types available in SQL with suitable L2 3
examples

3) Which normal form is based on the concept of transitive functional L3 3


dependency? Apply the concept to explain with a suitable example.

4) Summarize the concept of normalization and explain First Normal


L2 3
Form (1NF) with an example.

5) Discuss Informal design guidelines for relation schemas. L2 3

6) Consider the following schema for a Library Database:

BOOK (Book_id, Title, Publisher_Name, Pub_Year)


BOOK_AUTHORS (Book_id, Author_Name)
PUBLISHER (Name, Address, Phone)
BOOK_COPIES (Book_id, Branch_id, No-of_Copies)
BOOK_LENDING (Book_id, Branch_id, Card_No, Date_Out, Due_Date)
LIBRARY_BRANCH (Branch_id, Branch_Name, Address)
L3 3
Write SQL queries to:

1. Retrieve details of all books in the library – id, title, name of publisher,
authors, number of copies in each branch.
2. Get the particulars of borrowers who have borrowed more than 3 books,
but from Jan 2017 to Jun 2017
3. Delete a book in BOOK table. Update the contents of other tables to
reflect this data manipulation operation.
4. Create a view of all books and its number of copies that are currently
available in the Library.
7) Consider the following schema

Write the suitable code for creating tales, inserting data and for the queries.

1) For each piece, find the most expensive offering of that piece and
L4 4
include the piece name, provider name, and price(Note that there could be two
providers who supply the same piece at the most expensive price).
2) Obtain the names of all providers who supply piece 1.
3) Update the database to reflect that "Susan Calvin Corp." (code "RBT")
will not supply any pieces
4) Add an entry to the database to indicate that "Skellington Supplies"
(code "TNBC") will provide sprockets (code "1") for 7 cents each.
Obtain the average price of each piece (show only the piece code and the
average price).

8) Describe nested queries with syntax and example. L3 4

9) Write a short note following terms:


1)Unique
L2 4
2)Group By
3)Having

9) Define TRIGGER with syntax; Write a trigger to ensure that no L2 4


employee of age less than 25 can be inserted in the database.

10) Discuss aggregate function with example


L3 4

11) Explain Assertion with example


L2 4
12) Consider the following table and answer the queries.

L2 4
Queries:
1 . Retrieve the product_name and unit_price from the Products table.
2. Filter the Sales table to show only sales with a total_price greater than
$100.
3. Retrieve the sale_id and total_price from the Sales table for sales made
on January 3, 2024.
4. Calculate the average unit_price of products in the Products table.

13) Consider a relational table:


Professor(
professor name, professor id,
professor office id, student id,
student name, student office id,
student designated refrigerator id, refrigerator owner id,
refrigerator id, refrigerator size, secretary name,
secretary id, secretary office )
Suppose the data has the following properties:
A. Professors and secretaries have individual offices, students share
offices.
B. Students can work for multiple professors.
C. Refrigerators are owned by one professor. CL3 3
D. Professors can own multiple refrigerators.
E. Students can only use one refrigerator.
F. The refrigerator the student uses must be owned by one of the
professors they work for.
G. Secretaries can work for multiple professors.
H. Professors only have a single secretary.
Put this table into 3rd normal form by writing out the decomposed tables;
designate keys in your tables by underlining them. Designate foreign
keys by drawing an arrow from a foreign key to the primary key it refers
to.
Note that some of the properties listed above may not be enforced (i.e.,
guaranteed to be true) by a 3NF decomposition

14) Discuss the Insertion,Deletion and Modification anomalies.


CL3 3
Illustrate, why are they considered bad, with an example

15) What do you mean by multivalued dependency? Explain 4NF


CL3 3
with an example.
16) Consider the following schema

Write the suitable code for creating tales, inserting data and for the
queries.
1) Select the codes of all warehouses that are saturated (a warehouse CL4 4
is saturated if the number of boxes in it is larger than the
warehouse's capacity).
2) Select the code of each box, along with the name of the city the
box is located in.
3) Select the codes of all the boxes located in Chicago.
4) Reduce the value of all boxes by 15%.
5) Add Index for column "Warehouse" in table "boxes"

You might also like