


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



To clean messy retail sales data, analyse trends, and create visual insights using simple tools such as Excel/Google Sheets, SQL, and basic visualization tools like Tableau or Power BI.
โ Google Sheets or Excel (for data cleaning) โ SQL (MySQL or PostgreSQL) for querying and aggregation โ Tableau or Power BI (optional for visualization)
โ Missing values in the "Email" and "Discount (%)" columns. โ Duplicate records (John Doe appears twice). โ Inconsistent date formats (MM/DD/YYYY, DD-MM-YYYY, YYYY/MM/DD). โ Phone numbers missing for some customers.
โ Use the Remove Duplicates option in the Data tab. โ Use the =IF(ISBLANK(A2), "Unknown", A2) formula to fill missing values. โ Use the =TEXT(A2, "YYYY-MM-DD") formula to standardize dates.
UPDATE sales_data SET email = '[email protected]' WHERE email IS NULL;
DELETE FROM sales_data WHERE Order_ID NOT IN (SELECT MIN(Order_ID) FROM sales_data GROUP BY Customer_Name, Email); UPDATE sales_data SET Order_Date = STR_TO_DATE(Order_Date, '%m/%d/%Y');
Steps to Follow: