Activity: Normalizing Denormalized Data Using Excel

Thirdy GayaresThirdy Gayares
15 min read

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.

Steps for the Activity


Step 1: Create an Excel Workbook with 5 Sheets

  1. Open Excel and create a new workbook.

  2. Rename each sheet to correspond with the following datasets:

    • Sheet 1: employeeData

    • Sheet 2: studentData

    • Sheet 3: productData

    • Sheet 4: orderData

    • Sheet 5: salesData

example:


1. employeeData (Denormalized)

employeeIDemployeeNamedepartmentIDdepartmentNamemanagerIDmanagerNameprojectIDprojectNamesalaryaddresscitystatezipCodephoneemailhireDatejobTitlemanagerPhonemanagerEmailprojectDeadlineprojectStatus
101John SmithD001ITM001Lisa WhiteP001Alpha60000123 Elm StNew YorkNY10001555-1234john@example.com2020-01-15Developer555-3456lisa.white@example.com2022-12-01Active
102Jane DoeD002HRM002Bob BrownP002Beta65000456 Maple AveNew YorkNY10002555-5678jane@example.com2019-11-05Designer555-8765bob.brown@example.com2023-01-15Completed
103Bob BrownD003SalesM003Emma BlueP003Gamma55000789 Oak DrNew YorkNY10003555-8765bob@example.com2021-02-12Analyst555-9091emma.blue@example.com2022-11-20Active
104Lisa WhiteD001ITM001Lisa WhiteP001Alpha70000234 Pine StNew YorkNY10004555-3456lisa.white@example.com2018-09-08Manager555-3456lisa.white@example.com2022-12-01Active
105Tom GreenD002HRM002Bob BrownP002Beta50000567 Birch BlvdNew YorkNY10005555-6543tom.green@example.com2017-03-25Developer555-8765bob.brown@example.com2023-01-15Completed
106Lucy BlackD001ITM001Lisa WhiteP004Delta62000123 Elm StNew YorkNY10001555-1299lucy.black@example.com2020-06-20Developer555-3456lisa.white@example.com2022-09-05Active
107Mike GreyD002HRM002Bob BrownP002Beta54000456 Maple AveNew YorkNY10002555-7801mike.grey@example.com2019-08-13Designer555-8765bob.brown@example.com2023-01-15Completed
108Emma BlueD003SalesM003Emma BlueP005Epsilon58000789 Oak DrNew YorkNY10003555-9091emma.blue@example.com2021-04-05Analyst555-9091emma.blue@example.com2023-05-01Active
109Liam RedD003SalesM003Emma BlueP003Gamma59000234 Pine StNew YorkNY10004555-7890liam.red@example.com2018-10-02Manager555-9091emma.blue@example.com2022-11-20Active
110Noah YellowD001ITM001Lisa WhiteP004Delta61000567 Birch BlvdNew YorkNY10005555-6789noah.yellow@example.com2017-07-18Developer555-3456lisa.white@example.com2022-09-05Active


2. studentData (Denormalized)

studentIDstudentNameclassIDclassNameteacherIDteacherNamecourseIDcourseNamebirthDategradeaddresscitystatezipCodephoneemailenrollmentDateguardianNameguardianPhoneguardianEmailattendanceRateisGraduated
201Alice JohnsonC101Math 101T001Mr. ThompsonCO101Algebra2005-09-12A123 Cedar StNew YorkNY10001555-1200alice@example.com2021-08-10Mary Johnson555-1010mary.j@example.com95%No
202Bob WhiteC102History 202T002Mrs. GreenCO102World History2006-04-25B567 Cedar BlvdNew YorkNY10002555-6754bobw@example.com2020-09-15Paul White555-1020paul.w@example.com92%No
203Charlie BrownC103Science 303T003Dr. SmithCO103Physics2005-11-07C789 Pine AveNew YorkNY10003555-9832charlieb@example.com2019-07-05Susan Brown555-1030susan.b@example.com89%No
204David GreenC104English 404T004Ms. JacksonCO104English Literature2007-06-03B+124 Oak DrNew YorkNY10004555-4621davidg@example.com2022-01-17Kate Green555-1040kate.g@example.com94%No
205Emily GreyC105Art 505T005Mr. RobinsonCO105Painting2006-02-18A-455 Birch RdNew YorkNY10005555-9854emilyg@example.com2021-03-13Henry Grey555-1050henry.g@example.com97%Yes
206Fiona BlackC101Math 101T001Mr. ThompsonCO101Algebra2005-08-09B156 Oak DrNew YorkNY10006555-7234fionab@example.com2019-09-05Mary Johnson555-1010mary.j@example.com90%No
207George BlueC103Science 303T003Dr. SmithCO103Physics2006-12-15B-786 Pine AveNew YorkNY10003555-1298georgeb@example.com2020-04-20Susan Brown555-1030susan.b@example.com88%No
208Hannah RedC102History 202T002Mrs. GreenCO102World History2005-05-25C+213 Birch BlvdNew YorkNY10004555-3322hannahr@example.com2019-10-02Paul White555-1020paul.w@example.com91%No
209Ian YellowC105Art 505T005Mr. RobinsonCO105Painting2007-03-12A412 Cedar StNew YorkNY10001555-7899iany@example.com2021-05-18Henry Grey555-1050henry.g@example.com99%Yes
210Jacob WhiteC104English 404T004Ms. JacksonCO104English Literature2006-11-20B126 Pine BlvdNew YorkNY10005555-9845jacobw@example.com2020-12-04Kate Green555-1040kate.g@example.com96%No


3. productData (Denormalized)

productIDproductNamecategoryIDcategoryNamesupplierIDsupplierNamepricestocksupplierPhonesupplierEmailwarehouseIDwarehouseLocationreorderLevelmanufacturerIDmanufacturerNamemanufacturerPhonemanufacturerEmaildateAddedsalesAmountlastRestockedstatusSKUdescription
PR101LaptopCAT001ElectronicsSUP001TechSupply120050555-4001techsupply@example.comW001NY Warehouse10MAN001Dell555-8001dell@example.com2022-01-01500002022-09-15In StockLAP123High-end laptop
PR102SmartphoneCAT001ElectronicsSUP002GadgetWorld800200555-4002gadgetworld@example.comW002LA Warehouse20MAN002Apple555-8002apple@example.com2022-01-151600002022-10-01In StockSMRT456Latest model
PR103TabletCAT001ElectronicsSUP001TechSupply600100555-4001techsupply@example.comW003TX Warehouse15MAN001Dell555-8001dell@example.com2022-02-10600002022-08-20In StockTBL789Lightweight tablet
PR104MonitorCAT001ElectronicsSUP003OfficeDepot25075555-4003officedepot@example.comW001NY Warehouse5MAN003Samsung555-8003samsung@example.com2022-03-05187502022-09-10In StockMON12327-inch monitor
PR105KeyboardCAT002AccessoriesSUP002GadgetWorld50150555-4002gadgetworld@example.comW002LA Warehouse10MAN004Logitech555-8004logitech@example.com2022-04-0175002022-08-30In StockKYBD456Mechanical keyboard
PR106MouseCAT002AccessoriesSUP003OfficeDepot25300555-4003officedepot@example.comW003TX Warehouse20MAN004Logitech555-8004logitech@example.com2022-05-1275002022-09-05In StockMSE789Wireless mouse
PR107PrinterCAT001ElectronicsSUP001TechSupply10040555-4001techsupply@example.comW001NY Warehouse5MAN003Samsung555-8003samsung@example.com2022-06-1540002022-09-20In StockPRNT123Laser printer
PR108HeadphonesCAT002AccessoriesSUP002GadgetWorld70100555-4002gadgetworld@example.comW002LA Warehouse15MAN004Logitech555-8004logitech@example.com2022-07-2070002022-08-25In StockHDPH456Noise-cancelling
PR109SpeakersCAT001ElectronicsSUP003OfficeDepot9060555-4003officedepot@example.comW003TX Warehouse10MAN003Samsung555-8003samsung@example.com2022-08-1054002022-09-25In StockSPKR789Bluetooth speakers
PR110Web CameraCAT001ElectronicsSUP001TechSupply4080555-4001techsupply@example.comW001NY Warehouse5MAN001Dell555-8001dell@example.com2022-09-0132002022-09-30In StockWBCM123HD webcam


4. orderData (Denormalized)

orderIDcustomerIDcustomerNameproductIDproductNamequantityorderDateshippingDateshippingMethodshippingAddresscitystatezipCodephoneemailtotalAmountdiscountsalesRepIDsalesRepNamesalesRepPhonesalesRepEmailpaymentMethodstatustrackingNumber
1001C001Alice BrownPR101Laptop12022-10-012022-10-05UPS123 Cedar StNew YorkNY10001555-1212alice.b@example.com1200100S001John White555-6789john.white@example.comCredit CardShippedUPS123456789
1002C002Bob GreenPR102Smartphone22022-10-022022-10-06FedEx456 Maple AveNew YorkNY10002555-2323bob.green@example.com1600150S002Lisa Black555-6790lisa.black@example.comPayPalShippedFEDX987654321
1003C003Charlie SmithPR103Tablet32022-10-032022-10-07DHL789 Oak DrNew YorkNY10003555-3434charlie.s@example.com1800200S003Michael Blue555-6791michael.blue@example.comBank TransferShippedDHL123987654
1004C004David JohnsonPR104Monitor22022-10-042022-10-08UPS234 Pine StNew YorkNY10004555-4545david.j@example.com50050S001John White555-6789john.white@example.comCredit CardProcessingUPS876543210
1005C005Emily BrownPR105Keyboard12022-10-052022-10-09FedEx567 Birch BlvdNew YorkNY10005555-5656emily.b@example.com5010S002Lisa Black555-6790lisa.black@example.comPayPalShippedFEDX543216789
1006C001Alice BrownPR106Mouse12022-10-062022-10-10DHL123 Cedar StNew YorkNY10001555-1212alice.b@example.com255S001John White555-6789john.white@example.comCredit CardDeliveredDHL789456321
1007C002Bob GreenPR107Printer12022-10-072022-10-11UPS456 Maple AveNew YorkNY10002555-2323bob.green@example.com10010S002Lisa Black555-6790lisa.black@example.comPayPalDeliveredUPS123654789
1008C003Charlie SmithPR108Headphones22022-10-082022-10-12FedEx789 Oak DrNew YorkNY10003555-3434charlie.s@example.com14020S003Michael Blue555-6791michael.blue@example.comBank TransferShippedFEDX987123654
1009C004David JohnsonPR109Speakers12022-10-092022-10-13DHL234 Pine StNew YorkNY10004555-4545david.j@example.com9015S001John White555-6789john.white@example.comCredit CardShippedDHL321654987
1010C005Emily BrownPR110Web Camera12022-10-102022-10-14UPS567 Birch BlvdNew YorkNY10005555-5656emily.b@example.com405S002Lisa Black555-6790lisa.black@example.comPayPalProcessingUPS987321456

5. salesData (Denormalized)

salesIDproductIDproductNamecustomerIDcustomerNamesalesDateamountquantityregionIDregionNamesalesRepIDsalesRepNamecommissiontaxdiscounttotalRevenuepaymentMethodinvoiceIDinvoiceDateinvoiceAmountsalesStatusregionManagerregionPhoneregionEmail
2001PR101LaptopC001Alice Brown2022-10-0112001R001NorthS001John White100100501150Credit CardINV10012022-10-021200CompletedDavid Grey555-1212david.grey@example.com
2002PR102SmartphoneC002Bob Green2022-10-0216002R002EastS002Lisa Black1501501001550PayPalINV10022022-10-031600CompletedEmma White555-2323emma.white@example.com
2003PR103TabletC003Charlie Smith2022-10-0318003R003SouthS003Michael Blue2002001501700Bank TransferINV10032022-10-041800CompletedJohn Brown555-3434john.brown@example.com
2004PR104MonitorC004David Johnson2022-10-045002R001NorthS001John White505025475Credit CardINV10042022-10-05500In ProgressDavid Grey555-1212david.grey@example.com
2005PR105KeyboardC005Emily Brown2022-10-05501R002EastS002Lisa Black1010545PayPalINV10052022-10-0650CompletedEmma White555-2323emma.white@example.com
2006PR106MouseC001Alice Brown2022-10-06251R001NorthS001John White55223Credit CardINV10062022-10-0725CompletedDavid Grey555-1212david.grey@example.com
2007PR107PrinterC002Bob Green2022-10-071001R002EastS002Lisa Black1010595PayPalINV10072022-10-08100CompletedEmma White555-2323emma.white@example.com
2008PR108HeadphonesC003Charlie Smith2022-10-081402R003SouthS003Michael Blue202010130Bank TransferINV10082022-10-09140CompletedJohn Brown555-3434john.brown@example.com
2009PR109SpeakersC004David Johnson2022-10-09901R001NorthS001John White1510585Credit CardINV10092022-10-1090In ProgressDavid Grey555-1212david.grey@example.com
2010PR110Web CameraC005Emily Brown2022-10-10401R002EastS002Lisa Black55238PayPalINV10102022-10-1140CompletedEmma White555-2323emma.white@example.com

Step 2: Document Your Process using Hashnode

  • For each sheet, screenshot then upload it to hashnode.com:

    1. How you split the data into multiple tables.

    2. Which columns were redundant and how you removed those redundancies.

0
Subscribe to my newsletter

Read articles from Thirdy Gayares directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Thirdy Gayares
Thirdy Gayares

I am a dedicated and skilled Software Engineer specializing in mobile app development, backend systems, and creating secure APIs. With extensive experience in both SQL and NoSQL databases, I have a proven track record of delivering robust and scalable solutions. Key Expertise: Mobile App Development: I make high-quality apps for Android and iOS, ensuring they are easy to use and work well. Backend Development: Skilled in designing and implementing backend systems using various frameworks and languages to support web and mobile applications. Secure API Creation: Expertise in creating secure APIs, ensuring data integrity and protection across platforms. Database Management: Experienced with SQL databases such as MySQL, and NoSQL databases like Firebase, managing data effectively and efficiently. Technical Skills: Programming Languages: Java, Dart, Python, JavaScript, Kotlin, PHP Frameworks: Angular, CodeIgniter, Flutter, Flask, Django Database Systems: MySQL, Firebase Cloud Platforms: AWS, Google Cloud Console I love learning new things and taking on new challenges. I am always eager to work on projects that make a difference.