Question: 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 and use questions # and 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
