Question

Create an RDM that has entities, Customers, Products, Orders, Payments, and OrderDetails using MS ACCESS. For...

Create an RDM that has entities, Customers, Products, Orders, Payments, and OrderDetails using MS ACCESS. For each entity use the appropriate attributes and explain the relationship being used. (Add as much attributes that reflect on the real world) RDM = relational database model

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

CREATE TABLE IF NOT EXISTS Customer (

ID INT NOT NULL ,

Name TEXT NOT NULL ,

PhoneNo VARCHAR(45) NULL ,

PRIMARY KEY (ID) );


CREATE TABLE IF NOT EXISTS Order (

ID INT NOT NULL ,

customer_id INT NULL ,

PRIMARY KEY (ID) ,

INDEX fk_Order_1_idx (customer_id) ,

CONSTRAINT fk_Order_1

FOREIGN KEY (customer_id)

REFERENCES Customer (ID)

ON DELETE NO ACTION

ON UPDATE NO ACTION);


CREATE TABLE IF NOT EXISTS Product (

I` INT NOT NULL ,

Name VARCHAR(45) NOT NULL ,

Description TEXT NULL ,

PRIMARY KEY (ID) );

CREATE TABLE IF NOT EXISTS OrderDetail (

ID INT NOT NULL ,

Order_ID INT NOT NULL ,

Product_ID INT NOT NULL ,

Quantity INT NOT NULL ,

PRIMARY KEY (ID) ,

INDEX fk_OrderDetail_1_idx (Order_ID) ,

INDEX fk_OrderDetail_2_idx (Product_ID) ,

CONSTRAINT fk_OrderDetail_1

FOREIGN KEY (Order_ID )

REFERENCES Order (ID)

ON DELETE NO ACTION

ON UPDATE NO ACTION,

CONSTRAINT fk_OrderDetail_2

FOREIGN KEY (Product_ID)

REFERENCES Product (ID)

ON DELETE NO ACTION

ON UPDATE NO ACTION);

Add a comment
Know the answer?
Add Answer to:
Create an RDM that has entities, Customers, Products, Orders, Payments, and OrderDetails using MS ACCESS. For...
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
  • E/R diagram: Draw a complete Doctors office system E-R diagram using UML or crow’s foot notation...

    E/R diagram: Draw a complete Doctors office system E-R diagram using UML or crow’s foot notation that includes all of the entities, attributes, identifiers. Relationships should be appropriately labeled with verb phrases. Make it neat. Once the E-R model has created, convert the E-R model to a set of relations by using rules. We will call this set of relations the initial set of relations derived from the E-R model. You use to implement your database application in MS Access....

  • Part 1 - Create tblJobs Table Review the page on Entities & Attributes for more information...

    Part 1 - Create tblJobs Table Review the page on Entities & Attributes for more information on design. 1. Start Access can create a new blank database then create a table named tblJobs name. 3. Add the following fields. Job Title o Hourly Pay field must be able to contain fractional dollar amounts: example 10.75 o Hours - field contains the weekly number of hours each job is scheduled, must be able to contain fractional hours typically between 20 to...

  • For this DATABASE homework assignment you will create an Entity Relationship model for a business case...

    For this DATABASE homework assignment you will create an Entity Relationship model for a business case and then convert the model to a set of relations.  Read through the following business case for the “Drum Corps International”  Create an Entity relationship model with the necessary entities, attributes, identifiers and relationships to capture the data requirements.  All relationships should be labeled with verb phrases.  Use UML notation for this work.  Relationship lines should not cross. ...

  • In Module Four, submit a systems analysis for your project, including a comprehensive entity-relationship diagram (ERD)....

    In Module Four, submit a systems analysis for your project, including a comprehensive entity-relationship diagram (ERD). Although you may use any tool to complete the ERD, it is strongly recommended that you use Microsoft Visio and then save the diagram into an image format (GIF or JPG) and then copy and paste the image into your systems analysis. All sections of this milestone should be compiled into a single Word document. Furthermore, all of Milestone One should be included in...

  • please use dia to draw the e-r diagram to create Entity - Relationship Diagrams then use MS access This project requires you to create a database design. Your design will be documented in a set o...

    please use dia to draw the e-r diagram to create Entity - Relationship Diagrams then use MS access This project requires you to create a database design. Your design will be documented in a set of Entity-Relationship Crow's Foot diagrams using the representation as shown in the lecture materials. Draw a set of Entity-Relationship diagrams to model the following scenario. The Maggs Realty Company wants to track the Sales Offices that they have across all of Ontario They are interested...

  • SUBJECT: INFORMATION TECHNOLOGY, CLASS: ADVANCE DATABASE MANAGEMENT Hello Everyone, I need help on a project for...

    SUBJECT: INFORMATION TECHNOLOGY, CLASS: ADVANCE DATABASE MANAGEMENT Hello Everyone, I need help on a project for my ITD 256 Class. These are the questions I am suppose to answer: Project: The project should include designing a database deals with making a proposal for the database implementation. You can either try to fix an existing problem in your business or create a new database for the new projects or new clients. Please define the objective, scope, and time frame of your...

  • Using the textbook, Topic Materials, and your own research, write a 100-250 word response to each...

    Using the textbook, Topic Materials, and your own research, write a 100-250 word response to each question below. Cite the sources used for answering each question, and include real-world examples in the answer to each question. Define a tuple. How and where does a tuple fit into relational database theory? Why is this an important concept to understand? How does an object-oriented database management system (OODMS) compare to a relational database management system (RDBMS)? What are the key features of...

  • PART I: E-R Diagram Using MS Visio, you have previously practiced creating E-R diagrams. In this ...

    PART I: E-R Diagram Using MS Visio, you have previously practiced creating E-R diagrams. In this exercise, you will read and understand a scenario, identify relevant entities, then create proper ER diagrams You are tasked with drawing an ER diagram for a database that contains companies, departments, employees, employees' dependents (children), and employees' history. Answer each of the following questions (a)-(e) by providing an ER diagranm (a) [10 points] Each company operates four departments, and each department belongs to one...

  • I need help. Valley Vineyard Conceptual Model Case Read the case then create an entity-relationship diagram...

    I need help. Valley Vineyard Conceptual Model Case Read the case then create an entity-relationship diagram that captures the essence of the problem domain. Identify the entities (diagrammed in a rectangle box) Establish and label the relationships (diagrammed in a diamond) Determine the cardinalities Add the attributes, if you diagram is too busy the attributes can be on a separate page. Be sure to note any assumptions you have made. CASE: Valley Vineyard’s customers are mainly restaurants and wine shops...

  • 1) Create Conceptual Schema Diagram 2) Create a fully attributed Loagical Data Model Diagram 3) Create...

    1) Create Conceptual Schema Diagram 2) Create a fully attributed Loagical Data Model Diagram 3) Create the SQL script that will generate the data model Develop an EER model for the following situation using the traditional EER notation, the Visio notation, or the subtypes inside supertypes notation, as specified by your instructor: Wally Los Gatos and his partner Henry Chordate have formed a new limited partnership, Fin and Finicky Security Consultants. Fin and Finicky consults with corporations to determine their...

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