Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Describe all of the relationships between the tables in the attached image file TableRelationships.jpg a) describe all the foreign key and primary keys, either

Describe all of the relationships between the tables in the attached image file TableRelationships.jpg

 

a) describe all the foreign key and primary keys, either by detailing them 1 by 1 or define the CREATE table statements for all the tables (10 marks)

b) describe the relationship between each table ( 1..1 (exactly one match) 1..n (one or more matches)) (5 marks)

REFER THE PICTURE UPLOADED WITH IT 

contacttype id INT(11) label VARCHAR(255) Indexes contact pid INT(11) ctid INT (11) value TEXT Indexes person 

contacttype id INT(11) label VARCHAR(255) Indexes contact pid INT(11) ctid INT (11) value TEXT Indexes person id INT(11) frstname VARCHAR(255) lastname VARCHAR(255) dob DATE managerid INT (11) Onotes TEXT created TIMESTAMP Indexes projectperson prid INT(11) pid INT(11) rid INT (11) Indexes role id INT(11) label VARCHAR(255) Indexes project id INT(11) label VARCHAR(255) budget DOUBLE Indexes

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

a CREATE TABLE contacttype id INT11 label VARCHAR255 PRIMARY KEY id INDEX label FOREIGNKEYidREFERENC... 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

Step: 3

blur-text-image

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

Accounting Information System

Authors: James A. Hall

7th Edition

978-1439078570, 1439078572

More Books

Students also viewed these Databases questions

Question

What are economic events?

Answered: 1 week ago