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

Question Paper: Bms College of Engineering

This document contains a question paper for the Database Management Systems examination with 7 questions. It provides instructions to answer 5 out of the 7 questions in detail. The questions cover topics like characteristics of database approach, SQL queries on a database schema about hotels and bookings, ER modeling with examples, participation constraints, and ACID properties of transactions with examples.

Uploaded by

cool
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)
117 views

Question Paper: Bms College of Engineering

This document contains a question paper for the Database Management Systems examination with 7 questions. It provides instructions to answer 5 out of the 7 questions in detail. The questions cover topics like characteristics of database approach, SQL queries on a database schema about hotels and bookings, ER modeling with examples, participation constraints, and ACID properties of transactions with examples.

Uploaded by

cool
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/ 5

Question Paper

Exam Date & Time: 13-Oct-2020 (09:30 AM - 01:00 PM)

BMS COLLEGE OF ENGINEERING

Autonomous Institute Affiliated to VTU, Supplementary Semester End Main Examinations, October 2020
Database Management Systems [19CS4PCDBM]
Marks: 100 Duration: 210 mins.

CSE, Sem:IV
Answer all the questions.
Instructions:
1. Answer FIVE full questions using the given internal choice
2. Missing data, if any, may be suitably assumed

1) Explain the main characteristics of database approach. (5)

a)
b) Hotel(hotelNo, hotelName, city) (10)
Room(roomNo, hotelNo, type, price)
Booking(hotelNo, guestNo, dateFrom, dateTo, roomNo)
Guest(guestNo, guestName, guestAddress)

Write SQL query for the following


i. List full details of all hotels.
ii. List full details of all hotels in London.
iii. List the names and addresses of all guests in London, alphabetically ordered by name.
iv. List all double or family rooms with a price below Rs.40.00 per night, in ascending order of price.
v. Display the average price of a room.
vi. List the price and type of all rooms at the Grosvenor Hotel.
vii. List the number of rooms in each hotel.
viii. List the number of rooms in each hotel in London.
c) Using the "banking" example, write SQL to define the following views: (5)

branch (branch-name, branch-city, assets)


customer (customer-name, customer-street, customer-city)
account (account-number, branch-name, balance)
loan (loan-number, branch-name, amount)
depositor (customer-name, account-number)
borrower (customer-name, loan-number)
employee (employee-name, branch-name, salary)

i. A view containing the account numbers and customer names (but not the balances) for all accounts at the Basavangudi branch.
ii. A view containing the names and addresses of all customers who have an account with the bank, but do not have a loan.
2) Discuss cardinality ratio and its role in designing the ER modelling with an example. (5)

a)
b) (10)

Page #1
c) (5)

[OR] (5)
3)
a)
b) (10)

c) (5)

Page #2
Analyse the entities 'student' and 'team' and their relationship in the above diagram and identify their 'participation constraint' and justify
your answer.
4) (4)

a)

b) (10)

c) (6)

[OR] (5)
5)
a)
b) (10)

Page #3
c) (5)

6) (10)

a)

b) (5)

c) (5)

7) (5)
Page #4
a)

b) (5)

c) Discuss the ACID properties of a transaction. Give relevant example (5)


d) (5)

-----End-----

Page #5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy