shubhamrathore081's picture
Training in progress, epoch 0
30af91b verified
"CREATE TABLE employee (
employee_id INT PRIMARY KEY,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
email VARCHAR(100) UNIQUE NOT NULL,
phone_number VARCHAR(20),
hire_date DATE NOT NULL,
job_id VARCHAR(10) NOT NULL,
job_title VARCHAR(50) NOT NULL,
salary DECIMAL(10, 2),
manager_id INT,
manager_name VARCHAR(100),
department_id INT,
department_name VARCHAR(100));",,type,
,What is the first name of the employee with employee_id 101?, specific field based on pk,
,What is the email address of the employee named John Smith?,specific field based on varchar,
,What is the phone number of the employee who was hired on 2023-01-15?,specific field based on FIX Date,
,"How many employees have a salary greater than 70,000?",count on greater than value,
,What is the name of the manager of the employee named Jane Doe?,specific field based on varchar,
,who is manager of the employee named Jane Doe?,specific field (id/name confusion) based on varchar,
,How many employees work in the Sales department?,agg using column group by,
,List all employees who were hired in the year 2022.,all by specific year,
,What is the total salary expenditure for the IT department?,agg using column group by,
,What is the highest salary in the Finance department?,agg with varchar filter,
,List all employees who do not have a manager.,null filter,
,What is the name of the department with the highest number of employees?,group by + having query,
,List the names and job titles of employees who were hired in the last 6 months.,last X month,
,"How many employees have a salary between 50,000 and 60,000?",between int,
,List the first and last names of employees who work in the Research department.,multi column select,
,List all employees who were hired before 2020.,before year,
,What is the name of the employee with the lowest salary?,order by desc + limit 1,
,Which department has the highest average salary?,group by +agg of agg,
,List all employees hired this week and their respective managers.,this week,
,How many employees were hired last month and have a job title of 'Manager'?,count + last month,
,What is the total salary expenditure for employees hired in the last 3 months in the IT department?,last X month + enum filter,
,List all employees hired in the first two weeks of the current month and their job titles.,first_n_weeks,
,How many employees were hired last week and work in the Sales department?,last week ,
,What is the average salary of employees hired in the third week of the last month?,third week of month,
,List all employees who were hired in the last 30 days and their respective department names.,last x days,
,List all employees who were hired this month.,this month,
,What is the total salary expenditure for employees hired this month?,group by this month,
,List all employees who were hired last month.,last month,
,How many employees were hired last month?,group by last month,
,List all employees who were hired in the last 3 months.,last _x_month,
,What is the average salary of employees hired in the last 6 months?,agg with last x month,
,List all employees who were hired in January.,month without year,
,How many employees were hired in July?,month without year,
,List all employees who were hired in January 2022.,exact month,
,How many employees were hired in July 2022?,exact month,
,List the number of employees hired in every month of the current year.,monthly,
,What is the total salary expenditure for each month of the current year?,monthly,
,List the number of employees hired in every week of the current month.,weekly,
,What is the total salary expenditure for each week of the current month?,weekly,
,List all employees who were hired last week.,last week ,
,How many employees were hired last week?,last week ,
,List all employees who were hired this week.,this week,
,What is the total salary expenditure for employees hired this week?,this week,
,List all employees who were hired in the week of 2023-07-01.,Week of Date,
,List all employees who were hired in the third week of this month.,Third Week of Month,
,How many employees were hired in the third week of this month?,Third Week of Month,
,List all employees who were hired in the first week of this month.,First Week of Month,
,What is the total salary expenditure for employees hired in the first week of this month?,First Week of Month,
,List all employees who were hired in the second week of this month.,Second Week of Month,
,How many employees were hired in the second week of this month?,Second Week of Month,
,List all employees who were hired in the first two weeks of this month.,First Two Weeks of Month,
,What is the total salary expenditure for employees hired in the first two weeks of this month?,First Two Weeks of Month,
,List all employees who were hired in the last 2 weeks from 2023-07-01.,x week from date,
,How many employees were hired in the last 4 weeks from 2023-07-01?,x week from date,
,List all employees who were hired in the last 7 days.,last x days,
,What is the total salary expenditure for employees hired in the last 30 days?,last x days,
,List all employees who were hired today.,Today,
,How many employees were hired today?,Today,
,List all employees who were hired yesterday.,Yesterday,
,What is the total salary expenditure for employees hired yesterday?,Yesterday,
,List all employees who were hired on July 15,Specific Date Without Year,
,List the number of employees hired each day for the past month.,Daily,
,What is the total salary expenditure for each day of the past month?,Daily,
,List all employees who have been with the company for more than 5 years.,more that x years,
,How many employees have been with the company for more than 10 years?,more that x years,
,List all employees who are exactly 2 years old in the company.,Of X Years Age,
,How many employees are 3 years old in the company?,Of X Years Age,
,List all employees who have been with the company between 1 and 3 years.,Between X and Y Years,
,What is the average salary of employees who have been with the company between 5 and 10 years?,Between X and Y Years,