0 ratings0% found this document useful (0 votes) 78 views7 pages207 CSE Database Management Systems
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
Roll No.
PRESIDENCY UNIVERSITY
BENGALURU
SCHOOL OF ENGINEERING
TEST -1
Even Semester: 2018-19 Date: 06 March 2019
Course Code: CSE 207 Time: 1 Hour
Course Name: Database Management Systems Max Marks: 40
Programme & Sem: B. Tech (CSE) & IV Sem Weightage: 20%
Instructions:
() Read the question properly and answer accordingly.
(i) Question paper consists of 3 parts.
(ii) Scientific and Non-programmable calculators are permitted.
Part A
Answer all the Questions. Each question carries three marks. (5Qx3M=15)
1, What is Database Management Systems? Why do we need a DBMS?
2. Define Data-independence.
3. How does the cardinality ratio specify? Mention its types.
4, Explain Ternary Relationship with relevant example.
5, List any three DML commands with its query.
PartB
Answer all the Questions. Each question carries five marks. (30x5M=15)
6. Explain a weak entity with an example and represent it in ER diagram
7. Represent any 10 symbolic notations used in ER Diagram.
8. Explain the architecture of DBMS.
Part C
Answer the Question. Question carries ten marks. (10x10M=10)
9. Consider the employee database, where the primary keys are underlined
Employee(empname, street, city)
Works(empname, companyname, salary)
Company(companyname, city)
Manages(empname, manager name)
Page I of 2Write SQL for the following queries
a. Create a table ‘works’ by referencing Employee table with on delete cascade.
Find the names of all employees who works for First Bank Corporation
c. Find the names, Street addresses, and cities of residence of all employees who
works for First Bank Corporation and earn more than 200000 per annum
d. Find the names of all the employees in this database who live in the same city as the
companies for which they work
e. Find the names of all the employees who earn more than every employee of Small
Bank Corporation
sc
Page 2 of 2RaliNo. | | | | [TUTTI
PRESIDENCY UNIVERSITY
BENGALURU
SCHOOL OF ENGINEERING
TEST -2
Even Semester: 2018-19 Date: 16 April 2019
Course Code: CSE 207 Time: 1 Hour
Course Name: Database Management Systems Max Marks: 40
Program & Sem: B.Tech & IV Sem Weightage: 20%
Instructions:
() Read the question properly and answer accordingly.
(i)___ Question paper consists of 3 parts.
Part A
Answer all the Questions. Each question carries six marks. (3Qx6M=18)
1. What is a trigger? What are its advantages? Give the general syntax for creating a
TRIGGER.
2. Define virtual tables. How do you create and drop a view. Explain with an example.
3. Discuss the informal guidelines for the relational database design
Part B
‘Answer both the Questions. Each question carries six marks. (20x6M=12)
4, Define functions in SQL. Illustrate how to create a function in sql with suitable example.
5. Define 2 NF. Consider the universal relation R = (A, B, C, D, E, F, G, H, |, J} and the set
of functional dependencies F = {{A, B}{C}, {A}{D, E}, (B{F}, (FIMAG, H}, (D4,
J} Identify the key for relation R? Decompose R into 2NF.
PartC
Answer the Question. The Question carries ten marks. (1Qx10M=10)
6. Specify the following queries on the COMPANY relational database schema given
below using the relational algebra operators.
EMPLOYEE (Fname .Minit name, Ssn, Bdate, Address, Gender, Salary, Super_ssn, Dno)
DEPARTMENT (Dname, Dnumber, MGRSSN, MGRSTART Date)
PROJECT (Pname, Pnumber, Plocation, Dnum)
WORKS_ON (Essn, Pno, Hours)
DEPENDENT (Essn, Dependent_name ,Gender Bdate ,Relationship)
a) Find the names of employees who work on all the projects controlled by department
number 5.
b) Retrieve the names of employees who have no dependents.
c) Retrieve the names of managers who have atleast one dependent
d) Retrieve the names and address of all employees who works for Research
department
Page 1 of lCem TT TTT ITT
PRESIDENCY UNIVERSITY
BENGALURU
SCHOOL OF ENGINEERING
END TERM FINAL EXAMINATION
Even Semester: 2018-19 Date: 23 May 2019
Course Code: CSE 207 Time: 3 Hours
Course Name: Data Base Management Systems Max Marks: 80
Program & Sem: B.Tech & IV Sem Weightage: 40%
Instructions:
(Read the question property and answer accordingly.
(i)__ Question paper consists of 3 parts
Part A
Answer all the Questions. Each question carries one mark. (200x1M=20M)
i. Which of the following fields in a student file can be used as a primary key?
a) Class b) Social Security Number c) GPA d) Major
ii, After you choose a primary key from among candidate keys, the remaining candidate
keys become___ keys.
a) Compound b) Foreign ©) Alternate d) Discarded
ili, What are predicates that define correct database states and relationship with in
database?
a) Data b) Relationship c) Constraints.) Schema
iv. The database administration function includes
a) Application programming _b) Computer operations management
c) Database access planning _d) Alll of the above
v. The command to remove rows from a table ‘CUSTOMER is:
a) REMOVE FROM CUSTOMER b) DROP FROM CUSTOMER
c) DELETE FROM CUSTOMER WHERE d) UPDATE FROM CUSTOMER
vi. The SQL WHERE clause
a) Limits the column data that are returned,b) Limits the row data that are returned
©) Both A and B are correct. d) Neither A nor B are correct.
Page 1 of 3vii. The HAVING clause does which of the following?
a) Acts like a WHERE clause but is used for groups rather than rows.
b) Acts like a WHERE clause but is used for rows rather than columns.
©) Acts like a WHERE clause but is used for columns rather than groups.
d) Acts EXACTLY like a WHERE clause.
viii, Color of the car and degrees of students are examples for
a) Null attribute —_b) Derived attribute ¢) Single valued d) Multi valued
ix. An entity that does not have a key attribute is called?
a) Null attribute b) Entity Types
c) Weak entity types d) Derived attribute
x. Relational Algebra is a
a) Procedural language _b) Non- Procedural language
c) Data definition language
xi, A relational database consists of a collection of
a) Tables b)Fields c) Records d) Keys
xi, A. ina table represents a relationship among a set of values.
a) Column b) Key c) Row d) Entry
xiii. The term is used to refer to a row.
a) Attribute b)Tuple c) Field —_d) Instance
xiv. The term attribute refers toa ofa table.
a)Record b)Column c)Tuple —d) Key
xv. For each attribute of a relation, there is a set of permitted values, called the
of that attribute.
a)Domain b) Relation) Set d) Schema
xvi, A domain is atomic if elements of the domain are considered to be
units,
a) Different b) Indivisible c) Constant d) Divisible
xvii, The tuples of the relations can be of order.
a) Any b)Same —c) Sorted ~—_d) Constant
Page 2 of 3
xviii, DBMS is software
a)True —_b) False
xix. Which of the following is not involved in DBMS?
a) End User b)Data_ —_¢) Application Request. d) HTML
xx. A characteristic of an entity.
a) Relation b) Attribute ¢) Parameter d) Constraint
PartB
Answer all the Questions. Each question carries ten marks. (3Qx10M=30M)
2. Discuss the main characteristics of database approach?
3. Explain different types of joins with syntax and example for each.
4, For the given set of functional dependencies on Relation R (ABCDEFGH) find number of
candidates key {AB>C),{A->DE},{B>F},{F- GH}
Part C
Answer all the Questions. Each question carries ten marks. (3Qx10M=30M)
5. State the informal guidelines for relational schema design. Illustrate how violation of
these guidelines may be harmful.
6. With appropriate examples explain 3NF & BCNF.
7. Consider the following schema and write the relational algebra expressions for the
queries given below.
Suppliers (sid: integer , sname: string, address: string, color: string)
Parts (pid: integer, pname: string, color: string)
Catalog (sid: integer, pid: integer, cost: real)
i. “Find the names of suppliers who supply some red part.”
ji, “Find the IDs of suppliers who supply some red or green part.”
iii, “Find the IDs of suppliers who supply some red part or are at address- 221 Packer Ave”
iv. Find the sids of suppliers who supply some red part and some green
v. _ Find the sids of suppliers who supply every part.
Page 3 of 3| Roll No |
TM
Fite Lt ttt yy
PRESIDENCY UNIVERSITY
BENGALURU
SCHOOL OF ENGINEERING
SUMMER TERM / MAKE UP END TERM EXAMINATION
‘Semester: Summer 2019 Date: 27 July 2019
Course Code: CSE 207 Time: 2 Hours
Course Name: Data Base Management Systems Max Marks: 80
Program & Sem: B.Tech & IV Sem (2016 Batch) Weightage: 40%
Instructions:
() Read the question properly and answer accordingly.
(i) Question paper consists of 3 parts
PartA
Answer alll the Questions. Each question carries ten marks. (3Qx10M=30M)
1. Discuss the main characteristics of database approach?
2. Explain different types of joins with syntax and example for each
3. For the given set of functional dependencies on Relation R (ABCDEFGH) find number of
candidates key & to which normal form it belongs (C>F},{E>A}{EC->D},{A>B}
PartB
Answer all the Questions. Each question carries ten marks. (30x10M=30M)
4. Briefly explain select and project operations with appropriate examples.
5. With appropriate examples explain 1NF & 2NF.
6. Explain the following with examples
i) Super key
ii) Candidate key
ill) Prime attribute
Page 1 of 2Part C
Answer both the Questions. Each question carries ten marks. (2Qx10M=20M)
7. Explain properties of transaction with state transition diagram.
8. Draw an ER diagram for company database keeps track of a company’s employees,
departments, and projects. Suppose that after the requirements collection and analysis
phase, the database designers provide the following description of the miniworld—the part
of the company that will be represented in the database, The company is organized into
departments. Each department has a unique name, a unique number, and a particular
employee who manages the department. We keep track of the start date when that
employee began managing the department. A department may have several locations. A
department controls a number of projects, each of which has a unique name, a unique
number, and a single location. We store each employee's name, Social Security number,2
address, salary, sex(gender), and birth date, An employee is assigned to one department
but may work on several projects, which are not necessarily controlled by the same
department. We keep track of the current number of hours per week that an employee
works on each project. We also keep track of the direct supervisor of each employee (who
is another employee).We want to keep track of the dependents of each employee for
insurance purposes. We keep each dependent's first name, sex, birth date, and relationship
to the employee. Each department offers multiple courses which has coode, fees and
duration.
Page 2 of 2