Skip to content

Implement Data Retrieval and Transformation Logic (Steps 1-9)#1

Open
wekesawgodwin wants to merge 2 commits intolearn-co-curriculum:mainfrom
wekesawgodwin:main
Open

Implement Data Retrieval and Transformation Logic (Steps 1-9)#1
wekesawgodwin wants to merge 2 commits intolearn-co-curriculum:mainfrom
wekesawgodwin:main

Conversation

@wekesawgodwin
Copy link
Copy Markdown

Description
This PR completes the remaining data analysis tasks in the SQLSelectLab.ipynb notebook. The focus of this work was on leveraging advanced SQL syntax within the sqlite3 and pandas environment to transform raw employee and order data into actionable reports.

Key Changes
Conditional Logic: Implemented a CASE statement to categorize employee seniority into Executive and Not Executive roles.

String Manipulation: Applied LENGTH() and SUBSTR() functions to process last names and generate abbreviated job titles.

Mathematical Operations: Created a calculated column for total order prices using arithmetic operators and the ROUND() function.

Date Formatting: Utilized STRFTIME() to parse and extract specific date components (Day, Month, Year) for international reporting standards.

Implemented SQL queries using sqlite3 and pandas to retrieve and transform employee and order data. Completed steps 5-9, which include:
- Categorizing employee roles using CASE statements.
- Applying string functions (LENGTH, SUBSTR) for data extraction.
- Calculating and rounding total order amounts.
- Formatting date strings using STRFTIME.
Implemented SQL queries using sqlite3 and pandas to retrieve and transform employee and order data. Completed steps 5-9, which include:
- Categorizing employee roles using CASE statements.
- Applying string functions (LENGTH, SUBSTR) for data extraction.
- Calculating and rounding total order amounts.
- Formatting date strings using STRFTIME.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant