




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
the final assignment for database design and development course with all of criteria
Typology: Assignments
1 / 117
This page cannot be seen from the preview
Don't miss anything!





























































































1- Each Employee in the company has a name (first name and last name), an SSN, date of birth, a salary, an email, branch name, and password for log in. 2- Each employee has a position in this company (CEO, COO, CFO, Branch Manager, department manager, HR department employee, Sales department employee, Accounting department employee, Customer Service department employee), a position may be assigned to multiple employees while employee has only one position. The system should store an ID and the names of these positions. 3- Each Branch has a name, phone number, address (City, street name). 4- Each Department has a name and phone number. 5- Each Department can have multiple employees while the employee works only for one department. There is no department which has no employees. 6- Each subscription has a subscription number, date of purchase.
assigned for multiple subscriptions. Each subscription type has(ID, Name, Monthly fee, Commitment Duration, Speed, Internet Bundle, Minutes, SMS). (In case a new type of subscription was added it will have no subscriptions). 8- The system should store these information for each customer: a name (First name, Middle name, Last name), some of ID card information (National number, ID number, Date of Birth), an email, a Phone Number, and multiple addresses. 9- Each customer can have multiple subscription types and multiple subscriptions in each type while the subscription must be assigned to one customer. 10- Each subscription may have more than one bill or no bills.
11- Customers can pay their bills at the branch by the customer service employee, the employee can accept the payment for multiple bills, but each bill assigned to one employee. 12- The system should store these information for each bill: ID, bill value, and the issuance date of the bill.
Board of Officers:
Branch Manager:
In this graph, each employee has a position and works in a one department in one branch and the branch has multiple departments and the department has multiple employees. Each Customer has a one subscription or more and each subscription has a one bill or multiple bills, also each subscription has one subscription type.
Employee (SSN, Name (first name, last name), Date of Birth, Salary, Email, Password, branch name, Position ID, and Name of the Position). Branch (Name, Phone Number, Address (City, street name)). Department (Name, Phone Number). Customer (National Number, ID number, Date Of birth, Name (First Name, Middle Name, Last Name), Email, Phone Number, Multiple Addresses (City, Neighborhood, Street Name, Building Number). Subscription (Number, Date of Purchase, bill ID, bill value, bill issuance date). Subscription type (ID, Name of the type, Monthly fee, Commitment Duration, Speed, Internet Bundle, Minutes, SMS).
Employee (SSN, Name (first name, last name), Date of Birth, Salary, Email, Password, branch name, Position ID, and Name of the Position). After First Normal Form: Employee (SSN, first name, last name, Date of Birth, Salary, Email, Password, branch name, Position ID, and Name of the Position). Example2: Before First Normal Form: Branch (Name, Phone Number, Address (City, street name)). After First Normal Form: Branch (Name, Phone Number, City, street name)). Example3: Before First Normal Form: Customer (National Number, ID number, Date Of birth, Name (First Name, Middle Name, Last Name), Email, Phone Number, Multiple Addresses (City, Neighborhood, Street Name, Building Number). After First Normal Form:
Customer (National Number, ID number, Date Of birth, First Name, Middle Name, Last Name, Email, Phone Number) Customer Addresses ( Customer national Number, City, Neighborhood, Street Name, Building Number) Second Normal Form: By this form we can get rid of the multiple columns of the same kind of data in some records and this happens the primary key is composed of multiple keys and there are non-prime attributes which are partially dependent on key. To solve this problem, we should remove the partial dependencies by removing the partially dependent attributes and put them in a new relation along with a copy of their key. Example1: Before Second Normal Form: Subscription (Number, Date of Purchase, bill ID, bill value, bill issuance date). After Second Normal Form:
Employee (SSN, first name, last name, Date of Birth, Salary, Email, Password, branch name). Position (ID, Name of the Position)
It is the process of converting the ER model to Relational models to implement it directly by RDBMS (MySQL, Oracle, IBM DB2….). 1) Mapping 1:1 Relation Types: We can map between two 1:1 relations by the Foreign Key Approach, and that can be done by including the Primary key of the first relation as a foreign key into the second relation. 2) Mapping 1:M Relation Types: And that can be done by including the primary key of the (1) side relation as a foreign key into the (M) side relation.
3) Mapping M:N Relationship Types: it can be solved by creating a new relation and include the first’s relations primary key as a primary and foreign key into it, also we should include the second’s relation primary key as a primary and foreign key into the new relation.
Here is Telecall Logical Design according to the mapping with clarification of the relationships between these tables, and it is the foundation of the Physical Design.
It clarifies the data types of the attributes in the logical Design tables, and the next step after these designs is to implement them in Database Management System.
The Employee should open the System by URL, a Main page will appear, he should choose Employee Link, then a sign in form will appear to enter his Email and password, if Email or password or both of them wrong then will not be an authorized User, if not, a home page will appear with his/her information and Links to other pages (Customers, Subscriptions, Bills, Customer Addresses, Departments, Log out). Branch Departments
The Customer should open the System by URL, a Main page will appear, he should choose Customer Link, then a sign in form will appear to enter his Email and password, if Email or password or both of them wrong then will not be an authorized User, if not, a home page will appear with his/her information and Links to other pages (Subscriptions, Addresses, Bills, Log out). Employee