Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write SQL code to CREATE a table for Customers, Employees ( these would be employees who take orders ) and Orders. Follow along on page

Write SQL code to CREATE a table for Customers, Employees (these would be employees who take orders) and Orders. Follow along on page 69 and use questions #1,2,3, and 4. Draw a basic diagram and identify the primary keys and foreign keys. Screenshot or insert your diagram into your post and briefly explain your primary and foreign keys. Provide your SQL code to create each table (you can copy the code into a DQ, unlike assignments). If you struggled with your SQL code, post what you have so that the class can provide you with guidance. Compare and contrast your code and the attributes from your designs with other students.
NOTE: You can use any tool you like to create the entities and attributes. However, you might find Dbschema Links to an external site. very useful. Its free and easy to use. It designs PostgreSQL diagrams, which is helpful for your entities attributes, primary and foreign keys. It also creates your relationships and can deploy the design to many different database types.
This resource gives you database design tools Links to an external site. too; the list shows there are free editions:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

Explain how discrimination is a by-product of our thinking.

Answered: 1 week ago

Question

4 How can you create a better online image for yourself?

Answered: 1 week ago