Uploaded by pakabdullah2000

Introduction to Database Assignment

advertisement
INTRODUCTION TO DATABASE
Assignment 1
Section O1
Name: Muhammad Abdullah
Registration No. : L1F19BSSE0249
Task 1
Do the attribute names in the description follow the guidelines for naming
attributes? If not, suggest better names.
A good practice to name attributes is to write their name in either Camel Case or in Snake Case.
In this description, none of the two naming conventions are followed.
For Example:


Employee_ID should be either written as employeeID (Camel Case) or employee_id
(Snake Case)
Project_Name should be either written as projectName (Camel Case) or project_name
(Snake Case)
Task 2
Task 3
Did you draw more than one relationship between Physician and Patient? Why
or why not?
Yes, I drew 2 relationships between Physician and Patient because admit and treat are two
different things having different attributes. That’s why I had to draw 2 separate relationships
between Patient and Physician.
Task 4
Download