Database Normalization and Implementation Report for COIT20247
Verified
Added on 2023/06/12
|8
|766
|500
AI Summary
This report demonstrates the concept of database normalization in RDBMS and includes SQL queries and subqueries for generating reports. It also covers the use of SQL joins and subqueries.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
COIT20247 Database Design and Development (T1 2018) Assignment 2 Student ID: Student Name: Tutor Name: Date:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Functional Dependency in Tables Assessor Assessor (FiilddPersonID, FiilddQualificationName, FiilddDateQualified) FiilddQualificationNameFiilddPersonID FiilddDateQualifiedFiilddPersonID Only primary key is uniquely identifying the records in the Accessor table and all fields are depending upon it only. Property Property (FiilddPropertyID, FiilddStreet, FiilddCity, FiilddPostcode, FiilddPersonID) FiilddStreetFiilddPropertyID FiilddCityFiilddPropertyID FiilddPostcodeFiilddPropertyID FiilddPersonIDFiilddPropertyID Only primary key is uniquely identifying the records in the Property table and all fields are depending upon it only. Normalisation Third normalization is acheied in the CQI database by applying the normalization rules in the three steps- First Normal Form 1.Make unique tables having distinct data. Second Normal Form 1.Set primary key for each table. 2.Every fields should depend upon the primary key only. Third Normal Form 1.Get rid of transitive dependencies from all tables. (condor.depaul.edu n.d.) (Wyllys E. R. 2005) 4|P a g e
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
SQL Queries Query 1 SELECT qrHome.NumHomePolicy, qrContent.NumHomeContentPolicy FROM (SELECT Count(*) AS NumHomePolicy FROM Home_Building) AS qrHome, (SELECT Count(*) AS NumHomeContentPolicy FROM Home_Content) AS qrContent; Query 2 SELECT Person.PersonID, Person.PersonName, Person.Street, Person.City, Person.Postcode, Person.PersonType FROM Person WHERE Person.PersonID not in (Select PersonID from Assessment_Report) and Person.PersonType='Assessor'; Query 3 SELECT qrSettled.NumSettledClaim, qrRejected.NumRejectedClaim FROM (SELECT Count(*) AS NumSettledClaim FROM Settled_Claim) AS qrSettled, (SELECT Count(*) AS NumRejectedClaim FROM Rejected_Claim) AS qrRejected; 5|P a g e
Query 4 SELECT * FROM Person WHERE PersonID in (Select Property.PersonID FROM Property INNER JOIN (Policy INNER JOIN Claim ON Policy.PolicyID = Claim.PolicyID) ON Property.PropertyID = Policy.PropertyID Where Claim.Status='Rejected'); Query 5 SELECT TOP 1 ClaimID, AmountSettled, SettledDate FROM Settled_Claim ORDER BY AmountSettled DESC; Query 6 SELECT Policy.PolicyID, Policy.IsHomeBuildingPolicy, Policy.IsHomeContentsPolicy, Policy.PremiumAmount AS ['Total Premium Amount'] FROM Policy WHERE Policy.IsHomeBuildingPolicy<>0 and Policy.IsHomeContentsPolicy<>0; 6|P a g e
Rejected Claim Summary Report Learning Features These are the important learning features of the assignment- -Database query generation -Database report generation -Use of database normalization -Use of SQL joins -Use of sub queries Complex Features Features in which I faced some complexity are as follows- -Database sub queries -SQL joins Conclusion All features of the assignment are being shown in the report briefly. The report is the complete package of the database normalization. 7|P a g e
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
References condor.depaul.edu (n.d.). Normalization. Retrieved from: http://condor.depaul.edu/gandrus/240IT/accesspages/normalization3.htm Wyllys E. R. (2005), Overview of Normalization. Retrieved from: https://www.ischool.utexas.edu/~wyllys/DMPAMaterials/normover.html 8|P a g e