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

Assignment-1 BCS403

LOWDE

Uploaded by

jayadev.nishan
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)
11 views

Assignment-1 BCS403

LOWDE

Uploaded by

jayadev.nishan
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/ 3

Bapuji Educational Association ®

Bapuji Institute of Engineering and Technology, Davangere–577 004


Department of Computer Science & Engineering

Assignment -1

Course Title Database Management Systems Course Code BCS403


Dr. Gururaj T, Prof.Gangamma Hediyalad,
Course Coordinator Semester IV
Prof.Archana T Chawhan, Prof.Mohammad Muthair
Assignment No. I Max. Marks -
Date 10/3/2025

Course Outcome Statements : After the successful completion of the course, the students will be able to
CO1 Conceptualize data modeling concepts to draw ER-diagrams for the given scenarios.
CO2 Frame efficient queries to retrieve data from the database considered.
CO3 Apply the database normalization concepts to devise efficient database for the given real time problems.
CO4 Analyze the importance of Transaction processing and concurrency control in efficient database management.
CO5 Differentiate between DBMS and NoSql.

Note : Answer all the questions.


Q. Mar RBT
Question CO
No. ks Level
Explain the main characteristics of the database approach versus the file
1 processing approach. Bringing out the major advantages of the database 5 L2 1
approach.
Discuss the three schema architecture with a neat diagram. Why do we need 5 L2 1
2 mappings among schema levels? How do different schema definition languages
support this architecture?
Draw ER diagram for the following database schema with at least five entity 5 L3 1
types. Also specify primary key and structural constraints.
1. COMPANY
3 2. BANK
3. Airline Reservation System
4. Hospital Database
5. MAIL_ORDER database
4 Discuss various components of a DBMS with the neat diagram. 5 L2 1
Define an entity and attribute. Explain the different types of attributes that 5 L2 1
5
occur in an ER diagram model, with an example.
Explain the two different types of Structural Constraints on a relationship 5 L2 1
6
type.
Define the following with an example: 5 L2 1
1. Weak Entity Type
2. Degree of a relationship type
3. Role names and recursive relationship
7
4. Data Model
5. Schema
6. Instance
7. Canned Transaction
Note : Answer all the questions.
Q. Mar RBT
Question CO
No. ks Level
8. Cardinality Ratio
9. Participation Constraints
10. Meta data
11. Total Participation
12. DBMS Catalog
Describe the characteristics of relations with suitable examples for each. 5 L2 2
b. Briefly discuss the update operation on relational databases. Show an
8 example of a violation of entity integrity, key, referential integrity in each
of the insert operations.

Explain the terms super key, primary key, foreign key with an example 5 L2 2
9

Consider the following table: 5 L3 2


Works (Pname,Cname,Salary)
Lives (Pname,Street,City)
Located_in (Lname,City)
Manager (Pname,Mgrname)
Write the queries in relational algebra to
10
i.Find the names of all persons who live in the city “Mumbai”
ii.Retrieve the names of all persons of ‘infosys’ whose salary is between
30000 and 50000
iii.List the names of the people who work for ‘wipro’ along with the cities
they live in
iv.Find the average salary of all ‘infosys’
Given relational schema: 5 L3 2
Passenger (PID, pname, pgender, pcity)
Agency (aid, aname, acity)
Flight (fid, fdate, time, src, dest)
Booking (PID, aid, fid, fdate)
Construct relational algebra expression for the following:
(i)Get the complete details of all flights to new Delhi
(ii)Find only the flight numbers for passenger with pid 123 for flights to
Chennai before
11
06/11/2020
(iii)Find the passenger names for those who do not have any booking in
any flights
(iv)Get the details of flights that are scheduled on both dates 01/12/2020
and 02/12/2020 at 16:00
hours
(v)Find the details of all male passengers who are associated with the jet
agency.

12 Describe the steps of an algorithm for ER – to - relational mapping. 5 L2 2


Discuss the various types of constraints in SQL with examples. How do they 5 L2 2
13 help in maintaining data integrity?

Describe the different types of relational operations in Relational Algebra. 5 L2 2


14 Provide suitable examples for unary and binary relational operations.
Note : Answer all the questions.
Q. Mar RBT
Question CO
No. ks Level
Explain the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN, 5 L3 2
15 and FULL JOIN in SQL with examples.

Explain the different SQL data definition statements and their significance in 5 L2 3
16 defining database schemas.

Explain the importance of schema change statements in SQL. Provide 5 L2 3


17 examples of how they modify a database schema.

Explain how the DELETE and TRUNCATE statements differ in SQL. 5 L2 3


18 Provide examples.

Explain the significance of the HAVING clause in SQL. How is it different 5 L2 3


19 from the WHERE clause? Provide examples.

Explain how SQL supports aggregate functions like COUNT, SUM, AVG, 5 L2 3
20 MIN, and MAX. Provide examples for each function.

Write an SQL query to create a "Company" table with attributes 5 L3 3


(Company_ID, Company_Name, Location) and a "Employee" table with
21
attributes (Employee_ID, Name, Age, Salary, Company_ID). Ensure that
Company_ID is a foreign key in the Employee table.
Write an SQL query to create a "Student" table with attributes (Student_ID, 5 L3 3
Name, Age, Department, CGPA), and ensure that Student_ID is the primary
22
key. Write an SQL query to retrieve the names of students who have a CGPA
greater than 8.5 and belong to the 'Computer Science' department.

Last date for submission 24 03 2025

RBT (Revised Bloom’s Taxonomy) Levels : Cognitive Domain


L1 : Remembering L2 : Understanding L3 : Applying
L4 : Analysing L5 : Evaluating L6 : Creating

Course Instructors Course Coordinator DQAC Program Coordinator


(HOD, CS&E)

You might also like