To give you practical experience in using Entity-Relationship and Relational Database modelling techniques
Project Specification: Alan Counting Edward Quals and Peter Rofit are in partnership in an accounting practice CQR. tHE practice specialises in taxation auditing and financial advice for small to medium sized clients. They started the pracitce in 2005 and it has grown to now employ 25 people . These employees include other accountants and office staff.Alan, Edward and Peter believe the practice is headed for a period of significant growth and have come to you to help them redevelop their client billing system so that it copes with their workflows and supports future growth opportunities.
Attached as PDF document.
CQRStructureTypes(
Structure varchar(50),
Description varchar(200)
primaryKey(Structure)
);
CQRSectorTypes(
Sector varchar(50),
Description varchar(200)
primaryKey(Sector)
);
CQRServicesTypes(
Service varchar(50),
Description varchar(200)
primaryKey(Service)
);
ClientID varchar(10),
Name varchar(20),
Address varchar(100),
ContactNumber varchar(20),
ABN varchar(20),
TFN varchar(20),
Structure varchar(50),
Sector varchar(50),
Service varchar(50),
ParentClientID varchar(10)
primaryKey(ClientID, Sector, Service)
foreignKey(Structure) referenced by CQRStructureTypes(Structure)
foreignKey(Service) referenced by CQRStructureTypes(Service)
foreignKey(Sector) referenced by CQRStructureTypes(Sector)
CQREmploymentDomains(
EmploymentDomain varchar(20),
Description varchar(200)
primaryKey(EmploymentDomain);
);
CQREmpTypes(
EmpType varchar(20),
Description varchar(200)
primaryKey(EmpType);
);
EmploymentDomain varchar(20),
EmpType varchar(10),
BillingRate float,
SupervisorID varchar(10)
primaryKey(EmpID, EmploymentDomain);
foreignKey(EmploymentDomain) references to CQREmploymentDomains(EmploymentDomain);
foreignKey(EmpType) references to CQREmpTypes(EmpType);
)
CQREmployeeHourRatesHostory(
EmpID varchar(10),
StartDate Date,
EndDate Date,
BillingRate float
foreignKey(EmpID) references to CQREmployeesInfo(EmpID)
);
CQRWorkCategories(
WorkCategory varchar(20),
Charge flaot primaryKey(WorkCategory));
CQRClientBilling(
ClientID varchar(10),
EmpID varchar(10),
WorkCategory varchar(20),
StartTime Date,
EndTime Date,
Bill float
primaryKey(ClientID, EmpID, WorkCategory)
foreignKey(ClientID) references to CQRClientsInfo(ClientID)
foreignKey(EmpID) references to CQREmployeesInfo(EmpID)
);
a.
Many clients can be mapped to same strucure type
CQRClientsInfo —-many-one——> CQRStructureTypes
b. same clients can be mapped many sectors and many clients mapped to many secotrs
CQRClientsInfo —-many-many——> CQRSecotrsTypes
c.
same clients can be mapped many services and many clients mapped to many services
CQRClientsInfo —-many-many——> CQRServiceTypes
d. same employees mapped to many domains and many employees mapped to many domains
CQREmployeesInfo —-many-many——> CQREmploymentDomains
e Many employees mapped to one employee type
CQREmployeesInfo —-one-many——> CQREmpTypes
f. One client mapped to many works and many clients mapped one work.
CQRClientBilling —-many-many——> CQRWorkCategories
g. CQRClientsInfo is not in 1NF as address field is not atomic
CQRClientsInfo key (ClientID, Sector, Service), rest of the columns depending on ClientID which is part of the key. It is not in 2NF.
CQREmployeesInfo key (EmpID, EmploymentDomain), rest of the columns depending on EmpID which is part of the key. It is not in 2NF.
CQRClientBilling key (ClientID, EmpID, WorkCategory), rest of the columns depending on ClientID which is part of the key, it is not in 2NF.
Rest all other relations maintained in 3NF.
CQRStructureTypes(Structure, Description,
primaryKey(Structure));
CQRSectorTypes(Sector, Description,
primaryKey(Sector));
CQRServicesTypes(Service, Description,
primaryKey(Service));
CQRClientsInfo(ClientID, Name, StreetName, City, Country, ContactNumber,
ABN, TFN, Structure, ParentClientID,
primaryKey(ClientID),
foreignKey(Structure) referenced by CQRStructureTypes(Structure));
CQRClientsSectors(ClientID, Sector,
primaryKey(ClientID, Sector),
foreignKey(Sector) referenced by CQRSectorsTypes(Sector));
CQRClientsServices(ClientID, Service,
primaryKey(ClientID, Service),
foreignKey(Service) referenced by CQRServicessTypes(Service));
CQREmployeeHourRatesHostory(EmpID, StartDate, EndDate, BillingRate,
foreignKey(EmpID) references to
CQREmployeesInfo(EmpID));
CQRWorkCategories(WorkCategory, Charge,
primaryKey(WorkCategory));
CQRClientBilling(ClientID, StartTime, EndTime,
primaryKey(ClientID));
CQRClientWorkCategories(ClientID, WorkCategory
primaryKey(ClientID)
foreignKey(WorkCategory) references to
CQRWorkCategories(WorkCategory))
CQRClientEmployees(ClientID, EmpID
primaryKey(ClientID)
foreignKey(EmpID) references to
CQREmployeesInfo(EmpID));
References
Studytonight, 2014, DataBase Management System
Vangie Beal, 2014, Normalization
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Contact Essay is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download