Question
Using the relations that you defined and normalized as part of the Unit 4 Programming Assignment, create the SQL DDL statements necessary to implement your
Using the relations that you defined and normalized as part of the Unit 4 Programming Assignment, create the SQL DDL statements necessary to implement your database schema as an OpenOffice database. You may also implement your database in MySQL, IBM DB2 Express, Microsoft Access, SQL Server if you have access to these database systems. Your assignment must include a document that contains all of the SQL statements that you created and a screenshot that shows the structures that you implemented in the database of your choice. Your DDL statements must accommodate the following elements:
- Create statements to create tables from the entities defined as part of the Unit 4 assignment
- Appropriate use of Null (and Not Null) parameters to ensure data validity
- Appropriate use of constraint clauses to implement appropriate referential integrity
- Use of data types and formats that is appropriate for the data in your database schema.
- Appropriate use of keys including automatic generation of key values if appropriate
Unit 4 ER Diagram:
H SPECIALTY Specialty Number? Specialty DOCTOR Doctor ID 8 Name Phone Specialty Number Supervisor H+ . APPOINTMENT Appointment ID Date Patient ID Doctor ID Blood Pressure Pulse Treatment Notes Medicines ID PATIENT +H Patient ID Name Phone Email Address Date registered Doctor ID Allergy ID i |++ ALLERGIES Allergy ID Allergy Name Allergy detail description Allergy treatment MEDICINES Medicines ID 8 Medicine Name Medicine detail description Allergy ID Notes Primary Key Foreign Key 9
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started