{"id":20526648,"url":"https://github.com/abhirajp595/sql-mysql","last_synced_at":"2026-05-26T23:02:26.203Z","repository":{"id":248800924,"uuid":"829818761","full_name":"Abhirajp595/SQL-MySQL","owner":"Abhirajp595","description":"ScienceQtech Employee Performance Mapping","archived":false,"fork":false,"pushed_at":"2024-07-17T04:27:23.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T01:47:38.655Z","etag":null,"topics":["mysql","sql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Abhirajp595.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-17T04:07:01.000Z","updated_at":"2024-07-17T06:33:49.000Z","dependencies_parsed_at":"2024-07-17T07:11:24.533Z","dependency_job_id":null,"html_url":"https://github.com/Abhirajp595/SQL-MySQL","commit_stats":null,"previous_names":["abhirajp595/sql-mysql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Abhirajp595/SQL-MySQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhirajp595%2FSQL-MySQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhirajp595%2FSQL-MySQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhirajp595%2FSQL-MySQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhirajp595%2FSQL-MySQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abhirajp595","download_url":"https://codeload.github.com/Abhirajp595/SQL-MySQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abhirajp595%2FSQL-MySQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33542350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mysql","sql"],"created_at":"2024-11-15T23:15:12.906Z","updated_at":"2026-05-26T23:02:26.170Z","avatar_url":"https://github.com/Abhirajp595.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQL-MySQL\nScienceQtech Employee Performance Mapping.\n\n\nProblem Statement.\n\n\nScienceQtech is a startup that works in the Data Science field. ScienceQtech \nhas worked on fraud detection, market basket, self-driving cars, supply chain, \nalgorithmic early detection of lung cancer, customer sentiment, and the drug \ndiscovery field. With the annual appraisal cycle around the corner, the HR \ndepartment has asked you (Junior Database Administrator) to generate \nreports on employee details, their performance, and the project that the \nemployees have undertaken, to analyze the employee database and extract \nspecific data based on different requirements.\n\n\nDataset Description\n\n\n----emp_record_table: It contains the information of all the employees.\n\nVariable - Description\n\nEMP_ID - ID of the employee\n\nFIRST_NAME - First name of the employee\n\nLAST_NAME - Last name of the employee\n\nGENDER - Gender of the employee\n\nROLE - Post of the employee\n\nDEPT - Field of the employee\n\nEXP - Years of experience the employee has\n\nCOUNTRY - The country in which the employee is presently living\n\nCONTINENT - Continent in which the country is\n\nSALARY - Salary of the employee\n\nEMP_RATING - Performance rating of the employee\n\nMANAGER_ID - The manager under which the employee is assigned\n\nPROJ_ID - The project on which the employee is working or has \n\nworked on\n\n----Proj_table: It contains information about the projects.\n\nVariable - Description\n\nPROJECT_ID - ID for the project\n\nPROJ_Name - Name of the project\n\nDOMAIN - Field of the project\n\nSTART_DATE - The day the project began\n\nCLOSURE_DATE - Day the project was or will be completed\n\nDEV_QTR - Quarter in which the project was scheduled\n\nSTATUS - Current status of the project\n\n----Data_science_team: It contains information about all the employees in the \nData Science team.\n\nVariable - Description\n\nEMP_ID - ID of the employee\n\nFIRST_NAME - First name of the employee\n\nLAST_NAME - Last name of the employee\n\nGENDER - Gender of the employee\n\nROLE - Post of the employee\n\nDEPT - Field of the employee\n\nEXP - Years of experience the employee has\n\nCOUNTRY - Country in which the employee is presently living\n\nCONTINENT - Continent in which the country is\n\n\n\nTasks to Perform\nPerform the following tasks on the dataset provided using SQL:\n1. Create a database named employee, then import data_science_team.csv \nproj_table.csv and emp_record_table.csv into the employee database \nfrom the given resources\n2. Create an ER diagram for the given employee database\n3. Write a query to fetch EMP_ID, FIRST_NAME, LAST_NAME, GENDER, and \nDEPARTMENT from the employee record table, and make a list of \nemployees and details of their department\n4. Write a query to fetch EMP_ID, FIRST_NAME, LAST_NAME, GENDER, \nDEPARTMENT, and EMP_RATING if the EMP_RATING is:\n• less than two\n• greater than four\n• between two and four\n5. Write a query to concatenate the FIRST_NAME and the LAST_NAME of \nemployees in the Finance department from the employee table and \nthen give the resultant column alias as NAME.\n6. Write a query to list only those employees who have someone \nreporting to them. Also, show the number of reporters (including the \nPresident).\n7. Write a query to list down all the employees from the healthcare and \nfinance departments using union. Take data from the employee record \ntable.\n8. Write a query to list down employee details such as EMP_ID, \nFIRST_NAME, LAST_NAME, ROLE, DEPARTMENT, and EMP_RATING \ngrouped by dept. Also include the respective employee rating along \nwith the max emp rating for the department.\n9. Write a query to calculate the minimum and the maximum salary of the \nemployees in each role. Take data from the employee record table.\n10. Write a query to assign ranks to each employee based on their \nexperience. Take data from the employee record table.\n11. Write a query to create a view that displays employees in various \ncountries whose salary is more than six thousand. Take data from the \nemployee record table.\n12. Write a nested query to find employees with experience of more than \nten years. Take data from the employee record table.\n13. Write a query to create a stored procedure to retrieve the details of the \nemployees whose experience is more than three years. Take data from \nthe employee record table.\n14. Write a query using stored functions in the project table to check \nwhether the job profile assigned to each employee in the data science \nteam matches the organization’s set standard\nThe standard is given as follows:\n• Employee with experience less than or equal to 2 years, assign \n'JUNIOR DATA SCIENTIST’\n• Employee with experience of 2 to 5 years, assign 'ASSOCIATE DATA \nSCIENTIST’\n• Employee with experience of 5 to 10 years, assign 'SENIOR DATA \nSCIENTIST’\n• Employee with experience of 10 to 12 years, assign 'LEAD DATA \nSCIENTIST’,\n• Employee with experience of 12 to 16 years, assign 'MANAGER'\n15. Create an index to improve the cost and performance of the query to \nfind the employee whose FIRST_NAME is ‘Eric’ in the employee table \nafter checking the execution plan.\n16. Write a query to calculate the bonus for all the employees, based on \ntheir ratings and salaries (Use the formula: 5% of salary * employee \nrating).\n17. Write a query to calculate the average salary distribution based on the \ncontinent and country. Take data from the employee record table.\n\n\nProject Outcome\n• This project's goals are to determine the employees' maximum pay and confirm \nthat every position satisfies the organization's profile criterion.\n• This project involves calculating bonuses by determining the additional costs of \nthe expenses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirajp595%2Fsql-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhirajp595%2Fsql-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirajp595%2Fsql-mysql/lists"}