You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Show me all the employees that have had more than 15 salary changes that work in the department development
Please change the question to Show me all the employees that have had more than 15 salary changes and have ever worked in the department development
The original sentence conveys showing the employees that are currently working in the "Development" department which is not the intended result and need an extra de.to_date > NOW() condition:
SELECTe.emp_no, count(s.from_date) as"amount of raises"FROM employees as e
JOIN salaries as s USING(emp_no)
JOIN dept_emp AS de USING(emp_no)
WHEREde.to_date> NOW() Andde.dept_no='d005'GROUP BYe.emp_noHAVINGcount(s.from_date) >15ORDER BYe.emp_no;
The text was updated successfully, but these errors were encountered:
M-Matin-dev
changed the title
Clarification of the question tense
Correction of the question tense
Jun 15, 2023
Complete-SQL-Database-Bootcamp-Zero-to-Mastery/SQL Deep Dive/Having/answers.sql
Line 16 in 3fa6008
Please change the question to
Show me all the employees that have had more than 15 salary changes and have ever worked in the department development
The original sentence conveys showing the employees that are currently working in the "Development" department which is not the intended result and need an extra
de.to_date > NOW()
condition:The text was updated successfully, but these errors were encountered: