Database Management Assignment Help
Database Management Assignment Help
Dishes Dips
Name Price Rating
Name Price Ratin
Pasta 800 5 g
Fajita 500 4 Cheese 200 5
Pizza 1000 4
Pasta 200 5 Hummus 150 5
Pasta 150 5
Salsa 80 4
Cheesecake 800 5
Answer: b) П Dips.Name("Dishes.PricesDips.Price/Dips.Rating
Dishes. Rating (Dishes Dips))
d) П Dips.Name (Dips (Dips - (Dips1.Rating<4vDips1.Prices100
(PDips1 (Dips)))))
Q3. Consider the relational schema Music(Composer, Studio,
Instrument, Singer).
Choose the correct Tuple Relational Calculus expression that
represents the following state
ment:
"Display all Composers who selected Violin as an Instrument for
their Music."
ERD 1
Movie Song
ERD 2
Song
Movie
Movie Song
Name
Title
Singer
Actor M
Actor F
Producer
Administered BY P Name
Which of the following statements is (are) true?
a) EXEC SQL
DECLARE C CURSOR AS
FROM Employees
WHERE Salary< sal AND Designation-des
END. EXEC
SELECT Name
c) EXEC SQL
SELECT Name DECLARE C CURSOR AS
WHERE:Salary< sal & Designation=des
END EXEC
FROM Employees
d) EXEC SQL
DECLARE C CURSOR FOR SELECT Name
FROM Employees
WHERE Salary<:sal AND Designation=:des
END EXEC
Answer: d
Q7. Consider the following Entity Relationship diagram:
a) b)
c) d)
Answer: a)
a) The schema for the Device entity will be Device (Model JD) and
DeviceSensor (Sensor Name, Color).
b) The schema for the Device entity will be Device (Model JD, Color)
and
Device Sensor (Model ID, SensorName).
c) The schema for the Dev Owner will be Dev Owner(Model JD,
OID).
d) The schema for the Owner will be Owner(OID, Name, Address).
Answer: a) The schema for the Device entity will be Device (Model
JD) and DeviceSensor (Sensor Name, Color).
Q9. Consider the following scenario: A complex has Floors and
Apartments. A Floor can have
multiple Apartments and an Apartment can be present on a single
Floor. A Floor can be
identified by its No. Floors are associated with Area and Resident.
There can be multiple
Residents in a Floor. An Apartment can be identified by its ANO
and has an Owner. An Owner attribute is composed of the Owner's
Name and DOB. The Name is again composed of FName and
LName.
Shop
ID Location Branch
124 Kolkata 2
345 Delhi 0
87 Kolkata 1
452 Bangalore 4
a) 4
b) 8
c) 12
d) 16
Answer: b) 8