R22 DBMS AAT assignment1
R22 DBMS AAT assignment1
Bloom’s
CO# CO Statement Level
(L#)
A8514.1 Design a database for a given problem using E-R diagrams and Relational Model. L3
A8514.2 Construct Queries in Relational algebra and SQL for a case study L3
A8514.3 Use Normalization techniques to reduce data redundancy in data base. L3
A8514.4 Select transaction control and recovery methods to keep data base consistent L4
A8514.5 Compare various techniques and NoSQL databases for efficient access. L3
Questions:
Course Bloom’s
Outcomes Levels
1 a) Define the following terms CO1 L2
i)database ii)DBMS iii)physical data independence iv)logical data
independence v)levels of data abstraction
b) Give the applications and advantages of DBMS. CO1 L2
c) What is SQL? Give the different types of SQL commands. CO2 L2
d) Explain the following terms briefly i)Entity and entity set, CO1 L2
ii)Attribute and types of attributes iii)Relationship and relationship set
e) Using the following schema, write the corresponding queries in SQL? CO2 L3
SAILORS (SID, SNAME, RATING, AGE)
RESERVES (SID, BID, DAY)
BOATS (BID, BNAME, COLOR)
a) Write queries for creating above 3 tables.
b) Find the names of sailors with rating of 8 and above.
c) Write a query to add a column “DOB” to SAILORS table
d) Write query to update the color of boat “Interlake” to “blue”.
e) Write query to remove a column called “age” FROM sailors table
f) Write query to rename column “color” to “bcolor” in boats table.
g) Write query to delete all records in reserves table using truncate
command
h) Write query to rename table “reserves” to “boat_reserves"
i) Write query to delete boats table completely
j) Write query to display the structure of sailors table.
k) Write query to create a new database user with a password.
2. Draw an ER diagram for below problem statement related to university database. [CO1 L3]
Problem Statement
A program has a name, a program identifier, the total credit points required to graduate, and
the year it commenced.
A course has a name, a course identifier, a credit point value, and the year it commenced.
Students have one or more given names, a surname, a student identifier, a date of birth, and the
year they first enrolled. We can treat all given names as a single object—for example, “John
Paul.”
When a student takes a course, the year and semester he attempted it are recorded. When he
finishes the course, a grade (such as A or B) and a mark (such as 60 percent) are recorded.
Each course in a program is sequenced into a year (for example, year 1) and a semester (for
example, semester 1).