Question: Exercisel: Create and link tables 1. Open MySQL Workbench- Create a new schema - name it custorders 2. Create two new tables, named Customer and

 Exercisel: Create and link tables 1. Open MySQL Workbench- Create a

Exercisel: Create and link tables 1. Open MySQL Workbench- Create a new schema - name it custorders 2. Create two new tables, named Customer and Order, in MYSQL WORKBENCH with the following fields and do not forget to create a pr key for each of the following tables. [Important: Select the appropriate data type and choose constraints appropriately]. a. customer: customer_id, lastname, firstname, address, ci state, post_code, home_phone b. order: order_id, date, amount_due, discount_recd c. Make sure that you create appropriate foreign key column in video colled table in order to create one-to-many relationship between customer and ord table. d. Make sure that CASCADE is selected for both On Update and On Delete options. 3. Enter some data in the customer and order tables. 4. Close your database

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!