Skip to main content

Command Palette

Search for a command to run...

Activity #6: Normalizing Denormalized Data Using Excel

Updated
31 min readView as Markdown
Activity #6: Normalizing Denormalized Data Using Excel

In this activity, you will take 5 denormalized datasets and normalize them using Excel. You will generate 5 tables, each containing at least 25 columns. The goal is to split the data into multiple tables to follow database normalization rules using Excel sheets. This helps remove redundancy and ensure better data organization.

Step 1: Create an Excel Workbook with 5 Sheets

1. employeeData (Denormalized)

employeeIDemployeeNamedepartmentIDdepartmentNamemanagerIDmanagerNameprojectIDprojectNamesalaryaddresscitystatezipCodephoneemailhireDatejobTitlemanagerPhonemanagerEmailprojectDeadlineprojectStatus
1JaneD001AdministrationM001LunoxP001Gold Star60,000231 TalaCaloocanNY120009135780246jane@gmail.com1/15/2020Developer09215558958lunox.chaos@gmail.com12/1/2022Active
2LeoD002MarketingM002PharsaP002Bigfoot65,000Ph6 CamarinCaloocanNY110009246801357Leo@gmail.com11/5/2019Web Designer09335555595pharsa.fly@gmail.com1/15/2023Completed
3MaeD003ShippingM003JaneP003KingFish55,000Ph1 Bagong SilangCaloocanNY100009357913579Mae@gmail.com2/12/2021Analyst0945494345jane.wind@gmail.com11/20/2022Active
4NanazkieD004ITM004MaxiP004RawVenus70,000Ph2 Bagong SilangCaloocanNY130009468013578Nanazkie@gmail.com9/8/2018Manager0932482146maxi.orange@gmail.com12/1/2022Active
5KimmyD005SalesM005JhonnyP005WOWTime50,000Ph3 Bagong SilangCaloocanNY140009579124680Kimmy@gmail.com3/25/2017Developer09323419491Johnny@gmail.com1/15/2023Completed
6DanielD006BooksM006MarryP006Moreman62,000Ph5 Bagong SilangCaloocanNY150009680135792Daniel@gmail.com6/20/2020Developer09358483853marry@gmail.com9/5/2022Active
7RavenD007ClosthesM007Marie RoseP007Lemon Drop54,000Kiko CamarinCaloocanNY160009792468013Raven@gmail.com8/13/2019Designer09987413418marie.rose@gmail.com1/15/2023Completed
8MelnaD008FurnitureM008CharlieP008SteelCord58,000Zapote CamarinCaloocanNY170009801357924Melna@gmail.com4/5/2021Analyst09388438190charlie@gmail.com5/1/2023Active
9ElsaD009EquipmentM009ChinoP009Beta59,000AlmarCaloocanNY180009913579246Elsa@gmail.com10/2/2018Manager09102030405chino@gmail.com11/20/2022Active
10AnnaD010PersonnelM010chocoP010Delta61,000FairviewQuezonNY190009012345678Anna@gmail.com7/18/2017Developer09110334055choco@gmail.com9/5/2022Active

Normalized:

Employee Table

Managers Table

Project Table

projectIDprojectNameprojectIDprojectName
P001Gold StarP001Gold Star
P002BigfootP002Bigfoot
P003KingFishP003KingFish
P004RawVenusP004RawVenus
P005WOWTimeP005WOWTime
P006MoremanP006Moreman
P007Lemon DropP007Lemon Drop
P008SteelCordP008SteelCord
P009BetaP009Beta
P010DeltaP010Delta

Departments table

departmentName
Administration
Marketing
Shipping
IT
Sales
Books
Closthes
Furniture
Equipment
Personnel

employeeProject table

employeeIDprojectID
1P001
2P002
3P003
4P004
5P005
6P006
7P007
8P008
9P009
10P010

Which columns were redundant and how you removed those redundancies.

managerName, managerPhone, managerEmail - These were formerly duplicated for each employee, but are now only saved in the Managers table avoiding redundancy.

projectName, projectDeadline, projectStatus - These were duplicated for each employee and are now saved in the Projects table.

departmentName - This was repeated for each employee it is now stored in the Departments table.

2. studentData (Denormalized)

studentIDstudentNameClassIDClassNameTeacherIDteacherNameCourseIDCourseNameBirthDateGradeAddresscitystatezipCodephoneemailenrollmentDateguardianNameguardianPhoneguardianEmailattendanceRateisGraduated
101Melanie BrownC01Math 101T001Mr. LimsonCO101Algebra9/12/2005ATalaCaloocanNY130009476287492melanie@example.com8/10/2021Mela Brown09983367689mela.b@example.com95%No
102Brazil GreyC02History 202T002Mrs. EstorninoCO102World History4/25/2006BBagong silangCaloocanNY1400091826647338brazil@example.com9/15/2020Brazilie Grey09228786443brazilie.g@example.com92%No
103Ryan BangC03Science 303T003Mr. GabuteroCO103Physics11/7/2005CCamarinCaloocanNY150009873645122ryan@example.com7/5/2019mikmik Bang09666874242mikmik.b@example.com89%No
104Harold BlackC04English 404T004Mrs. AmoreCO104English Literature6/3/2007B+AlmarCaloocanNY160009872645113harold@example.com1/17/2022Haroldan Black09811127664haroldan.b@example.com94%No
105Jaheli GreenC05Art 505T005Ms. LindoganCO105Painting2/18/2006A-BayanQuezonNY170009811136457jaheli@example.com3/13/2021Jane Green09876621442jane.g@example.com97%Yes
106Michael DarkC06Math 101T006Mr. LimsonCO106Algebra8/9/2005BFairviewQuezonNY180009876543324michael@example.com9/5/2019Michaela Dark09887722345michaela.d@example.com90%No
107Rona BlueC07Science 303T007Mr. GabuteroCO107Physics12/15/2006B-Bagong silanganQuezonNY190009871122578rona@example.com4/20/2020Ronna Blue09118872236ronna.b@example.com88%No
108Zedric windowC08History 202T008Mrs. EstorninoCO108World History5/25/2005C+AlmarCaloocanNY100009874455222zedric@example.com10/2/2019Zedrica window09172645283zedrica.w@example.com91%No
109Paul JohnC09Art 505T009Ms. LindoganCO109Painting3/12/2007ACircleQuezonNY110009123556337paul@example.com5/18/2021Paula John09917364599benedette.r@example.com99%Yes
110Benedetta RedC10English 404T010Mrs. AmoreCO110English Literature11/20/2006BKikoCaloocanNY120009118876543benedetta@example.com12/4/2020Benedette Red09870087654Tigreal@gmail.com96%No

Normalized:

Students Table

Teacher Table

TeacherIDCourseID
T001CO101
T002CO102
T003CO103
T004CO104
T005CO105
T006CO106
T007CO107
T008CO108
T009CO109
T010CO110

Classes Table

ClassIDClassNameTeacherID
C01Math 101T001
C02History 202T002
C03Science 303T003
C04English 404T004
C05Art 505T005
C06Math 101T006
C07Science 303T007
C08History 202T008
C09Art 505T009
C10English 404T010

Courses table

CourseIDCourseName
CO101Algebra
CO102World History
CO103Physics
CO104English Literature
CO105Painting
CO106Algebra
CO107Physics
CO108World History
CO109Painting
CO110English Literature

studentGrade Table

studentIDClassIDGradeattendanceRate
101C01A95%
102C02B92%
103C03C89%
104C04B+94%
105C05A-97%
106C06B90%
107C07B-88%
108C08C+91%
109C09A99%
110C10B96%

Guardians table

Which columns were redundant and how you removed those redundancies.

className, teacherID, courseID, courseName - These were formerly repeated for each student, but are now saved in their relevant tables (Classes, Teachers, Courses) reducing duplication.

guardianName, guardianPhone, guardianEmail → These were repeated for each student, and they are currently saved in the Guardians database.

grade, attendanceRate → These were repeated for each student in each class and are now saved in the StudentGrades database which connects students to classes.

3. productData (Denormalized)

productIDproductNamecategoryIDcategoryNamesupplierIDsupplierNamepricestocksupplierPhonesupplierEmailwarehouseIDwarehouseLocationreorderLevelmanufacturerIDmanufacturerNamemanufacturerPhonemanufacturerEmaildateAddedsalesAmountlastRestockedstatusSKUdescription
PR101LaptopCAT001ElectronicsSUP001TechGad25005509288744762techGad@email.comW001NY Warehouse20MAN001Apple09383746283apple@email.com1/1/2022500009/15/2022In StockLAP123High-end laptop
PR102TabletCAT002ElectronicsSUP002GadgetDIY15003009119923424GadgetDIY@email.comW002TX Warehouse15MAN002Apple09283744668apple@email.com1/15/20225000010/1/2022In StockTBL789Lightweight tablet
PR103PrinterCAT003ElectronicsSUP003GadgetMO5000509122244889GadgetMO@email.comW003TX Warehouse5MAN003Samsung09228837456samsung@email.com2/10/2022600008/20/2022In StockPRNT123Laser printer
PR104HeadphonesCAT004AccessoriesSUP004TechGad10010009114847222techGad@email.comW004LA Warehouse10MAN004Dell09337466578dell@email.com3/5/202275009/10/2022In StockHDPH456Noise-cancelling
PR105SpeakersCAT005ElectronicsSUP005TechSup1502009847280727techsup@email.comW005TX Warehouse30MAN005Logitech09837454737logitech@email.com4/1/202232008/30/2022In StockSPKR789Bluetooth speakers
PR106Web CameraCAT006ElectronicsSUP006TechSup500509726452844techsup@email.comW006NY Warehouse50MAN006Samsung09734737384samsung@email.com5/12/202232009/5/2022In StockWBCM123HD webcam
PR107CellphoneCAT007ElectronicsSUP007TechGad100001009172454278techGad@email.comW007LA Warehouse20MAN007Dell09837465537dell@email.com6/15/202240009/20/2022In StockCP456Latest model
PR108ChargerCAT008AccessoriesSUP008GadgetDIY3005009842745444GadgetDIY@email.comW008TX Warehouse10MAN008Samsung09837536672samsung@email.com7/20/202254008/25/2022In StockCHGR192Fast charger
PR109KeyboardCAT009AccessoriesSUP009GadgetMO3501009127457667GadgetMO@email.comW009NY Warehouse10MAN009Logitech09886633441logitech@email.com8/10/202254009/25/2022In StockKYBD456Mechanical keyboard
PR110MouseCAT010AccessoriesSUP010GadgetDIY5001009888117422GadgetDIY@email.comW010LA Warehouse20MAN010Logitech09827364537logitech@email.com9/1/202240009/30/2022In StockMSE789Wireless mouse

Normalized:

Products Table

productIDproductNamecategoryIDpricestockreorderLevelSKUdescriptiondateAddedsalesAmountlastRestockedstatus
PR101LaptopCAT00125005520LAP123High-end laptop1/1/2022500009/15/2022In Stock
PR102TabletCAT00215003015TBL789Lightweight tablet1/15/20225000010/1/2022In Stock
PR103PrinterCAT003500055PRNT123Laser printer2/10/2022600008/20/2022In Stock
PR104HeadphonesCAT00410010010HDPH456Noise-cancelling3/5/202275009/10/2022In Stock
PR105SpeakersCAT0051502030SPKR789Bluetooth speakers4/1/202232008/30/2022In Stock
PR106Web CameraCAT006500550WBCM123HD webcam5/12/202232009/5/2022In Stock
PR107CellphoneCAT007100001020CP456Latest model6/15/202240009/20/2022In Stock
PR108ChargerCAT0083005010CHGR192Fast charger7/20/202254008/25/2022In Stock
PR109KeyboardCAT0093501010KYBD456Mechanical keyboard8/10/202254009/25/2022In Stock
PR110MouseCAT0105001020MSE789Wireless mouse9/1/202240009/30/2022In Stock

Suppliers Table

Categories Table

categoryIDcategoryName
CAT001Electronics
CAT002Electronics
CAT003Electronics
CAT004Accessories
CAT005Electronics
CAT006Electronics
CAT007Electronics
CAT008Accessories
CAT009Accessories
CAT010Accessories

Warehouses Table

warehouseIDwarehouseLocation
W001NY Warehouse
W002TX Warehouse
W003TX Warehouse
W004LA Warehouse
W005TX Warehouse
W006NY Warehouse
W007LA Warehouse
W008TX Warehouse
W009NY Warehouse
W010LA Warehouse

Manufacturers Table

Which columns were redundant and how you removed those redundancies.

categoryName, supplierName, supplierPhone, supplierEmail, warehouseLocation, manufacturerName, manufacturerPhone, manufacturerEmail → These were initially repeated for each product they are now kept in their appropriate tables (Categories, Suppliers, Warehouses, and Manufacturers) which eliminates redundancy.

4. orderData (Denormalized)

orderIDcustomerIDcustomerNameproductIDproductNamequantityorderDateshippingDateshippingMethodshippingAddresscitystatezipCodephoneemailtotalAmountdiscountsalesRepIDsalesRepNamesalesRepPhonesalesRepEmailpaymentMethodstatustrackingNumber
1001C001Nanazkie metPR101Web Camera110/1/202210/5/2022UPS123 Cedar StNew YorkNY1000109483478728nana.m@gmail.com1200100S001Vexana0973852894vexana@gmail.comBank TransferShippedUPS987321456
1002C002David JamesPR102Speakers110/2/202210/6/2022FedEx456 Maple AveNew YorkNY1000209384728374david.j@gmail.com1600150S002Leomord0949792483leomord@gmail.comPaypalProcessingDHL321654987
1003C003James NatePR103Headphones410/3/202210/7/2022DHL123 Cedar StNew YorkNY1000309732737733james.n@gmail.com1800200S003Faramis0912356445faramis@gmail.comPaypalProcessingFEDX987123654
1004C004Natnat whitePR104Printer210/4/202210/8/2022DHL567 Birch BlvdNew YorkNY1000409273767477natnat.w@gmail.com50050S001Thamuz0954332387thamuz@gmail.comCredit CardShippedUPS123654789
1005C005Matmat GreenPR105Keyboard110/5/202210/9/2022UPS234 Pine StNew YorkNY1000509878273763matmat.g@gmail.com5010S002Dyroth0965536692dyroth@gmail.comCredit CardShippedDHL789456321
1006C006Bob MarryPR106Tablet110/6/202210/10/2022UPS456 Maple AveNew YorkNY1000609223844673bob.m@gmail.com255S001Silvana0928375152silvana@gmail.comBank TransferProcessingFEDX543216789
1007C007Nana BluePR107Laptop110/7/202210/11/2022DHL789 Oak DrNew YorkNY1000709838277722nana.m@gmail.com10010S002Tigreal0909235185tigreal@gmail.comPaypalShippedUPS876543210
1008C008MikmikPR108Charger210/8/202210/12/2022FedEx123 Cedar StNew YorkNY1000809388273352mikmik@gmail.com14020S003Fanny0999123852fanny@gmail.comBank TransferProcessingDHL123987654
1009C009johnsonPR109Cellphone110/9/202210/13/2022UPS567 Birch BlvdNew YorkNY1000909112762527johnson@gmail.com9015S001Harith0992381052harith@gmail.comPaypalShippedFEDX987654321
1010C010BrunomarsPR110Charger210/10/202210/14/2022FedEx789 Oak DrNew YorkNY1001009272151511bruno.m@gmail.com405S002Granger0921385934granger@gmail.comCredit CardProcessingUPS123456789

Normalized:

Orders Table

orderIDcustomerIDorderDatetotalAmountdiscountpaymentMethodstatustrackingNumber
1001C00110/1/20221200100Bank TransferShippedUPS987321456
1002C00210/2/20221600150PaypalProcessingDHL321654987
1003C00310/3/20221800200PaypalProcessingFEDX987123654
1004C00410/4/202250050Credit CardShippedUPS123654789
1005C00510/5/20225010Credit CardShippedDHL789456321
1006C00610/6/2022255Bank TransferProcessingFEDX543216789
1007C00710/7/202210010PaypalShippedUPS876543210
1008C00810/8/202214020Bank TransferProcessingDHL123987654
1009C00910/9/20229015PaypalShippedFEDX987654321
1010C01010/10/2022405Credit CardProcessingUPS123456789

Products Table

productIDproductName
PR101Web Camera
PR102Speakers
PR103Headphones
PR104Printer
PR105Keyboard
PR106Tablet
PR107Laptop
PR108Charger
PR109Cellphone
PR110Charger

Customers Table

Sales Represetatives Table

Order Item Table

orderIDproductIDquantityshippingDateshippingMethod
1001PR101110/5/2022UPS
1002PR102110/6/2022FedEx
1003PR103410/7/2022DHL
1004PR104210/8/2022DHL
1005PR105110/9/2022UPS
1006PR106110/10/2022UPS
1007PR107110/11/2022DHL
1008PR108210/12/2022FedEx
1009PR109110/13/2022UPS
1010PR110210/14/2022FedEx

5. salesData (Denormalized)

salesIDproductIDproductNamecustomerIDcustomerNamesalesDateamountquantityregionIDregionNamesalesRepIDsalesRepNamecommisiontaxdiscounttotalRevenuepaymentMethodinvoiceIDInvoiceDateinvoiceAmountsalesStatusregionManagerregionPhoneregionEmail
3001PR101Web CameraC005Alice Guo10/1/2022501R001NorthS001Alucard551040Credit CardINV100110/2/202250In ProgressElexion111 9292elexion@gmail.com
3002PR102SpeakersC004Appolo Quiboloy10/2/20224102R002EastS002Miya505020390Debit CardINV100210/3/2022410In ProgressMetalicana111 3838metalicana@gmail.com
3003PR103HeadphonesC003Diwata Pares10/3/20222502R003SouthS003Claude202015235PaypalINV100310/4/2022250In ProgressDogramag111 4747dogramag@gmail.com
3004PR104PrinterC002Ninong Ry10/4/20221001R001NorthS001Cyclops1010595PaypalINV100410/5/2022100CompletedKurnugi111 5656kurnugi@gmail.com
3005PR105KeyboardC005Gildark10/5/20223001R002EastS002Aurora303010290Credit CardINV100510/6/2022300In ProgressMercphobia111 3838mercphobia@gmail.com
3006PR106TabletC003Raffy Tulfo10/6/202218001R001NorthS001Odette180180901710Debit CardINV100610/7/20221800CompletedIgnia111 9292ignia@gmail.com
3007PR107LaptopC005Alden Richkid10/7/202212001R002EastS002Pharsa120120601140PaypalINV100710/8/20221200CompletedGrandeeney111 4747grandeeny@gmail.com
3008PR108MouseC001Natsu10/8/2022601R003SouthS003Lunox55258Debit CardINV100810/9/202260CompletedIgnil111 5656ignil@gmail.com
3009PR109CellphoneC002Erza10/9/202216001R001NorthS001Vale160160801520Debit CardINV100910/10/20221600In ProgressAcnologia111 9292acnologia@gmail.com
3010PR110ChargerC002Grey10/10/20221201R002EastS002Valir404020100Credit CardINV101010/11/2022120CompletedAtlas111 4747atlas@gmail.com

Normalized:

Sales Table

salesIDproductIDcustomerIDsalesDateamountquantityregionIDsalesRepIDinvoiceIDsalesStatustotalRevenuepaymentMethod
3001PR101C00510/1/2022501R001S001INV1001In Progress40Credit Card
3002PR102C00410/2/20224102R002S002INV1002In Progress390Debit Card
3003PR103C00310/3/20222502R003S003INV1003In Progress235Paypal
3004PR104C00210/4/20221001R001S001INV1004Completed95Paypal
3005PR105C00510/5/20223001R002S002INV1005In Progress290Credit Card
3006PR106C00310/6/202218001R001S001INV1006Completed1710Debit Card
3007PR107C00510/7/202212001R002S002INV1007Completed1140Paypal
3008PR108C00110/8/2022601R003S003INV1008Completed58Debit Card
3009PR109C00210/9/202216001R001S001INV1009In Progress1520Debit Card
3010PR110C00210/10/20221201R002S002INV1010Completed100Credit Card

Product Table

productIDproductName
PR101Web Camera
PR102Speakers
PR103Headphones
PR104Printer
PR105Keyboard
PR106Tablet
PR107Laptop
PR108Mouse
PR109Cellphone
PR110Charger

Customer Table

customerIDcustomerName
C005Alice Guo
C004Appolo Quiboloy
C003Diwata Pares
C002Ninong Ry
C005Gildark
C003Raffy Tulfo
C005Alden Richkid
C001Natsu
C002Erza
C002Grey

Region Table

regionIDregionNameregionManagerregionPhoneregionEmail
R001NorthElexion111 9292elexion@gmail.com
R002EastMetalicana111 3838metalicana@gmail.com
R003SouthDogramag111 4747dogramag@gmail.com
R001NorthKurnugi111 5656kurnugi@gmail.com
R002EastMercphobia111 3838mercphobia@gmail.com
R001NorthIgnia111 9292ignia@gmail.com
R002EastGrandeeney111 4747grandeeny@gmail.com
R003SouthIgnil111 5656ignil@gmail.com
R001NorthAcnologia111 9292acnologia@gmail.com
R002EastAtlas111 4747atlas@gmail.com

Sales Represetatives Table

salesRepIDsalesRepNamecommision
S001Alucard5
S002Miya50
S003Claude20
S001Cyclops10
S002Aurora30
S001Odette180
S002Pharsa120
S003Lunox5
S001Vale160
S002Valir40

Invoice Table

invoiceIDInvoiceDateinvoiceAmount
INV100110/2/202250
INV100210/3/2022410
INV100310/4/2022250
INV100410/5/2022100
INV100510/6/2022300
INV100610/7/20221800
INV100710/8/20221200
INV100810/9/202260
INV100910/10/20221600
INV101010/11/2022120

More from this blog

Untitled Publication

66 posts