100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

Lecture notes Database Development (Comp11007)

Rating
-
Sold
-
Pages
3
Uploaded on
22-04-2023
Written in
2022/2023

Where we will learn about the database relationship









Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
April 22, 2023
Number of pages
3
Written in
2022/2023
Type
Lecture notes
Professor(s)
Junking
Contains
All classes

Content preview

JF A Question on ER to Relational Mapping and a highly problematic answer 02Dec2021


Identify and correct all mistakes and add all missing elements in the given answer in blue below
to the following question:


Question: ER to Relational Mapping

Map the conceptual design of a database in ER illustrated in Figure 1 below to a relational schema.
Identify primary and foreign keys in your relational schema. Present your relational schema in the
format illustrated in the example below:

Pet {petID, petName, breed, age, owner}
Primary key: petID
Foreign key: owner references Owner(ownerID)
Alternate key: none



PropertyforSale viewedBy Viewer
propertyID {PK} 1..* 1..*
viewerID {PK}
type name
price fName
location lName
date
1..* result
1..1
owns
hasPermitFor
1..1
0..1
Owner
Vehicle
ownerID {PK}
name regNo {PK}
fName make
lName model
postcode
phoneNo [1..*]




Figure 1 A conceptual design in ER
£6.78
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
kamranafridi

Get to know the seller

Seller avatar
kamranafridi University of the West of Scotland
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions