Question

Questions: Assume you are creating a database for IS paint store. Suppose you have an ER diagram ...

Questions: Assume you are creating a database for IS paint store. Suppose you have an ER diagram like the following: Please answer the following questions. Explain your answer. 1. Convert the ER diagrams to relational tables. 2. Specify primary keys and foreign keys in each table. For foreign keys, specify which primary key it references to. 3. Please create the tables in SQL for the relational tables in our ER diagrams. You also need to define primary keys and foreign keys. 4. Please insert at least one row into each table.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

street,city,zip,state) Transaction Balance Rent date Transaction Detail payment Cust ID (FK T ID Due Date Return Date TYPE I

1) Primary Keys of every table is defined by underlining that attribute and FK is represent by typing (FR) in front of that attribute.

2)

Table Name

Primary Key

Foreign Key

Foreign_Key_Reference_Table

Customer

Cust_ID

Transaction

T_ID

Cust_ID

Customer

Transaction Detail

I_ID

T_ID

Transaction

Inventory

I_ID

I_ID

Transaction Detail

Genre

I_ID

Inventory

TV Series

TV_Series_Id

I_ID

Inventory

Movie

I_ID

Inventory

Episode

TV_Series_Id

TV Series

Add a comment
Know the answer?
Add Answer to:
Questions: Assume you are creating a database for IS paint store. Suppose you have an ER diagram ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Describe briefly a database application case of your choice and represent your data in terms of...

    Describe briefly a database application case of your choice and represent your data in terms of 3 linked (via foreign key/s) tables. List their respective primary key and foreign key/s if any. Your database application case should be different from those already covered in the lectures or practicals. For the database case in the Additional Exercises of the previous practical, complete the proper construction of all the 5 tables in SQL, building all the pertinent primary and foreign keys there....

  • (a) When implementing a relational database schema in SQL, does it matter in which order you crea...

    (a) When implementing a relational database schema in SQL, does it matter in which order you create tables? Hint: suppose that foreign keys exist. (b) Explain the options available for enforcing a foreign key constraint when creating a foreign key, and what effects they have. What is the default option?

  • QUESTION 1 What is the most common relationship within a relational database? Select the best answer...

    QUESTION 1 What is the most common relationship within a relational database? Select the best answer from the following. One-To-One relationship. o One-To-Many relationship. Many-To-Many relationship. Zero-To-Zero relationship. QUESTION 2 What is an "entity'? Select the best answer from the following. An entity, for our purposes, is the same as a table in the database. An entity represents one of the columns in an individual table. There are no entities in a relational database. Entities are only part of NoSQL...

  • This is questions of Accounting Information Systems 1) Fo a database. Each row in this spreadsheet...

    This is questions of Accounting Information Systems 1) Fo a database. Each row in this spreadsheet represents a: ur Tet Industries tracks customer information using various Microsoft Excel spreadsheets stored in a. Field b. Record c. File d. Database 2) A d tables is a. What is the correct term for the database field in Table 1? latabase field in Table 1 that serves as a unique identifier in Table 2 and is used to link both of the a....

  • Map the ER diagram into a relational database schema. Describe each relation schema in parenthesized notation...

    Map the ER diagram into a relational database schema. Describe each relation schema in parenthesized notation (not SQL) underlining the primary key. For each relation, describe any applicable integrity constraints, e.g., foreign key, referential integrity, not null, etc.

  • Through the remaining assignments due in this course, you will be creating a simple database for...

    Through the remaining assignments due in this course, you will be creating a simple database for tracking information about volunteers working and raising money for a community organization. This assignment requires that you create the initial table, called PERSON, to hold basic information about volunteers. You will be redefining the design and building the database in the upcoming unit assignments. 1.Use the mysqldump.exe command line tool to backup the data in your volunteer database. To access the mysqldump.exe tool, start...

  • Help In Database: Next comes the data entry: Make up data for your database, or find...

    Help In Database: Next comes the data entry: Make up data for your database, or find real data. You can enter the data with INSERT statements, but it is much easier to use PhpAdmin. It has a form where you can type the data directly. Alternatively, you can use PhpAdmin to import CSV data (comma-separated values), which you can export from Excel. Include at least 3 rows in each of the entity relations, and as many rows as you need...

  • Please help me answer these: In the relational database model, an entity consists of one and...

    Please help me answer these: In the relational database model, an entity consists of one and only one entity instance (or record). A. True B. False 2. In the relational database model, the foreign key name does NOT have to be the same as the primary key name. A. True B. False 3. Logical relationships between tables (or entities) in the relational database model are created with primary and candidate keys. A. True B. False 4. In the relational database...

  • The relational schema shown below is part of a student database. The primary and foreign keys are highlighted in bold.

    The relational schema shown below is part of a student database. The primary and foreign keys are highlighted in bold.Student (studNo, studName, address, mobileNo)Course (courseNo, courseName, creditHour, level) Registration (studNo, courseNo, regDate, semester, session)Project (projNo, projName, courseNo)Assignment (projNo, studNo, startDate, dueDate, hoursSpent)Write SQL queries based on the student database given above: 1. Create tables & constraints for the student database.2. Insert some data into the tables to check that the tables created are correct. No limit on how many rows you want...

  • QUESTION 11 Three questions require you to download the Medicine database MySQL dump (link in Quiz assessment folder) and import it into MySQL Based on the Medicines database you imported, complete t...

    QUESTION 11 Three questions require you to download the Medicine database MySQL dump (link in Quiz assessment folder) and import it into MySQL Based on the Medicines database you imported, complete the SQL statement below to add the table Locations to record the state (up to 6) a Manufacturer can operate in. When completing the statement, ensure you use the same naming conventions as other columns in the database and choose the most appropriate datatype. Your answer will be marked...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT