Question

In: Computer Science

Database: Question 11 Using the ERD from problem 10, create the relational schema.(Create an appropriate collection...

Database:

Question 11

Using the ERD from problem 10, create the relational schema.(Create an appropriate collection of attributes for each of the entities. Make sure you use the appropriate naming conventions to name the attributes.)

Solutions

Expert Solution

ANSWER;

Relation data model -

Relation Data Model was an advance model that took over the Hierarchical Model and Network Model as these data models were very complex, and did not provids structural indepenmdence or data independence .

The Relation Data Model allows the data in the databases to be manipulated using relation calculus/relation algebra.

The data is represented in a table that is set of n- tuples.

A table is a matrix which is the collection of rows and colums.

Each intersection forms a cell wich contains a record.

The columns contain entries of same type and have a predefined set of allowed values called domain.

The tables are linked to each other by using keys and constraints to form relationships as represented in the real world.

Relation data model for united Broke Artists (UBA)

Taking the case of united Broke Artists (UBA),

there can be following tables in the model;

1. PAINTING-

The PAINTING table can have the following fields. The fields are also known as attributes. The fields are P _NAME , P_ EXHIBITION, P_PRICE, P _DT_CREQATED, G_ID and PT_ID

2. PAINTER_

The PAINTER table can have the following fields . The fields are PT_LNAME, PT_FNAME, P_NAME, PT_ADDRESS, PT_PH_NUMBER , P_ID and PT_ID.

3. GALLERY_

The GALLERY table can have the following fields are G_NAME, G_ADDRESS, G_DATE, G_ARTIST, and G_ID.

Relationship;

Between PAINTING and PAINTER table , there is a 1;M relationship. This is because each painting is created by a single painter but a painter can create many paintings.

Between PAINTING and GALLERY table, there is a 1;M relationship. This is because each painting is can be exhibited in only a single gallery but a gallery can have many paintings on exhibitions.

The relational model is shown below;


Related Solutions

• Relational Schema Create a relational database schema consisting of the four relation schemas representing various...
• Relational Schema Create a relational database schema consisting of the four relation schemas representing various entities recorded by a furniture company.   Write CREATE TABLE statements for the following four relation schemas. Define all necessary attributes, domains, and primary and foreign keys. Customer(CustomerID, Name, Address) FullOrder(OrderID, OrderDate, CustomerID) Request(OrderID, ProductID, Quantity) Product(ProductID, Description, Finish, Price) You should assume the following: Each CustomerID is a number with at most three digits, each OrderID is a number with at most five digits,...
Using MYSQL in terminal, create the tables for your above designed relational schema and populate your...
Using MYSQL in terminal, create the tables for your above designed relational schema and populate your tables with appropriate data. All except time slot and the relationship it participates in. Use the names for the tables and attributes from the ER schema. Use ON DELETE CASCADE for foreign keys. Each basic table (corresponding to an entity in the ER schema developed for Part 1) should have 5-10 rows. Campus can have just 2. Building should have at least 6. At...
Create a database to hold a collection of numbers to be searched and sorted: 1) Create...
Create a database to hold a collection of numbers to be searched and sorted: 1) Create a main class and a database class 2) Collect 5 random numbers from the user in the main class and store in an array. (not in ascending or descending order) 3) Create an instance of the database class in your main class and store the numbers array in the database using its constructor. 4) In the Database class, create a method that performs a...
For this question, normalize the table to 3NF and draw the relational schema showing cardinalities. UCLA...
For this question, normalize the table to 3NF and draw the relational schema showing cardinalities. UCLA just purchased several servers that are to be used for enterprise resource planning (ERP). The individual servers were purchased from different suppliers and these servers are running different software applications. UCLA also trained several of its staff to use these servers and each trained staff has an authentication code that allows the staff to use a specific software application on a specific server for...
Database Management Question: Choose a database recovery problem and then propose a solution using the techniques,...
Database Management Question: Choose a database recovery problem and then propose a solution using the techniques, such as log-based recovery or shadow paging, etc. Briefly describe the technique, when it is appropriate to use, and what recovery problem it solves.
QUESTION: The following tables describe the content of a relational database: a) Identify and classify the...
QUESTION: The following tables describe the content of a relational database: a) Identify and classify the tables as either entity or relationship The first step in building an E-R model is to identify the entities. Having identified the entities, the next step is to identify all the relationships that exist between these entities. Using the content of the relational database above: b) Using the relations in the relational database, explain how one can transform relationship in E-R model into a...
Listed below is the relational database schema for an online store(SQL/Java): MEMBER(last_name, first_name, email, password, user,street,...
Listed below is the relational database schema for an online store(SQL/Java): MEMBER(last_name, first_name, email, password, user,street, city, state, zip, card_type, card_no, expiration, name_on_card) book_SALE(listing_no, seller, isbn, condition, price) ORDERS(order_no, buyer, order_date, tot) ITEM(order_no, listing_no) BOOK(isbn, title, author, edition, publisher, keywords) The bold attribute(s) in a relation is the primary key of that relation. The italized attributes in some relations denote foreign keys. The seller attribute in the book_SALE relation is a foreign key to the user attribute in the MEMBER...
Listed below is the relational database schema for an online store(SQL/Java): MEMBER(last_name, first_name, email, password, user,street,...
Listed below is the relational database schema for an online store(SQL/Java): MEMBER(last_name, first_name, email, password, user,street, city, state, zip, card_type, card_no, expiration, name_on_card) book_SALE(listing_no, seller, isbn, condition, price) ORDERS(order_no, buyer, order_date, tot) ITEMS(order_no, listing_no) BOOK(isbn, title, author, edition, publisher, keywords) The bold attribute(s) in a relation is the primary key of that relation. The italized attributes in some relations denote foreign keys. Create/Define the table.
Problem 1. Please create the following tables for a tool rental database with appropriate primary keys...
Problem 1. Please create the following tables for a tool rental database with appropriate primary keys & foreign keys. [30 points] Assumptions: Each tool belongs to a category. Each category may have a parent category but the parent category should not have parent category (so at most two levels). E.g., a Tool A belongs to electric mower, and electric mower belongs to mower. Mower has no parent category. Each tool can be rented at different time units. The typical time...
7. Using the provided schema of a Purchase Order Administration database, write the following queries in...
7. Using the provided schema of a Purchase Order Administration database, write the following queries in SQL. (In the schema, bold attributes are primary keys and italicized attributes are foreign keys.) SUPPLIER (SUPNR, SUPNAME, SUPADDRESS, SUPCITY, SUPSTATUS) SUPPLIES (SUPNR, PRODNR, PURCHASE_PRICE, DELIV_PERIOD) PRODUCT (PRODNR, PRODNAME, PRODTYPE, AVAILABLE_QUANTITY) PO_LINE (PONR, PRODNR, QUANTITY) PURCHASE_ORDER (PONR, PODATE, SUPNR) 7d) Write a nested SQL query to retrieve the supplier number, supplier name, and supplier status of each supplier who has a higher supplier status...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT