Skip to content

Add Example Queries for Data AnalysisΒ #1

@temptationkentos57

Description

@temptationkentos57

Suggestion

It would be beneficial to include example SQL queries for key analyses mentioned in the project objectives. Currently, users may find it challenging to know how to translate the objectives into SQL queries for data analysis. Adding a section that provides example queries for questions such as:

  • Gender breakdown in the company
  • Remote work distribution by department
  • Termination data by race

Could enhance user understanding and ease their ability to replicate or extend the analysis.

Proposed Section

πŸ“ Example SQL Queries

Here's a start for the proposed section:

-- Gender breakdown in the company
SELECT Gender, COUNT(*) AS Count  
FROM employees  
GROUP BY Gender;  

-- Number of employees working remotely by department
SELECT Department, COUNT(*) AS Remote_Employees  
FROM employees  
WHERE Location = 'Remote'  
GROUP BY Department;  

-- Terminated employees by race
SELECT Race, COUNT(*) AS Terminated_Count  
FROM employees  
WHERE Employment_Status = 'Terminated'  
GROUP BY Race;  

Including more examples like these could greatly improve the project documentation and support users in executing their analyses effectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions