SvetlanaRedkina / Mutiple-Tables

CASE, CTE, Derived Tables, User-defined Variables, Aggregate Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mutiple-Tables

Writing meticulous SQL queries is among my favorite work challenges 😊. I love pondering on how to improve my queries and pushing myself into looking for new solutions πŸ™‹. I find it particularly interesting to manipulate the data which I extract from a variety of tables. This project is an example of what I often do when I am working with multiple tables.

So what do we do in this project ❓

We create a complex SQL report on First Time No-Show Employee Rate utilizing CASE expression and CTE across multiple tables through repurposing aggregate functions for counting successful logical test runs.

We convert Employee Occupational Records into a form suitable for a report with the help of user-defined variables embedded into conditional statements.

Last, we calculate a statistical parameter within a department applying mathematical MySQL functions in conjunction with session variables.

Project content πŸ‘‡

All tables, queries, and outputs are stored in the Multiple tables.sql file. I have also included detailed explanations of the logic behind the queries.

The screenshots of the tables in MySQL Workbench are placed in the Tables Screenshots folder.

Authors

Honest feedback

I am glad you have visited my project 🌹

About

CASE, CTE, Derived Tables, User-defined Variables, Aggregate Functions

License:MIT License