Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. In logical database design, why there is a need to introduce a new relation for many-tomany relationship in ERD? 2. Describe how to convert

1. In logical database design, why there is a need to introduce a new relation for many-tomany relationship in ERD?

2. Describe how to convert a generalization/specialization in ERD into relations in GRD.

3. What are user interface and system interface respectively?

4. List at least 4 typical menu types and discuss their advantages and disadvantages.

5.Write an SQL statement to create a view about the hotel numbers and hotel names.

6. Write an SQL statement to insert the staff numbers and names into the guest table.

(1 mark) SQL other statements in basic SQL

a) Create a view to check the hotel name, room number and the guest names who booked the room

b) Select everything from the view created above

c) Drop the above view

d) Create a view to check the hotel number and hotel names and the number of rooms they have.

e) Create a view to see the pair of room types and prices.

f) Create a view to see the distinct pair of room types and prices.

g) Create an index of room types and prices on the room table

h) Drop the above index

i) Create an index of the guest names

j) Create a new table including hotel information (i.e., hotel names and numbers) from the room table; k) Backup the room table

l) Insert the staff numbers and names as the guest numbers and names into the guest table. If not successful, why?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions