Skip to content

Commit

Permalink
Update and rename 2.5.sql to 2.5_FINAL.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannidis authored May 6, 2018
1 parent e57b49b commit 6149693
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions 2.5.sql → 2.5_FINAL.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,3 @@ SELECT first_name,last_name,car_id,start_date,end_date
FROM employee INNER JOIN service_history ON employee.id=service_history.tech_id
WHERE employee.id = 3 AND (end_date > NOW() - INTERVAL '1 month'
OR (end_date IS NULL AND start_date > NOW() - INTERVAL '1 month'))


-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SELECT first_name,last_name,car_id,start_date,end_date
FROM employee
RIGHT JOIN service_history ON employee.id=service_history.tech_id
WHERE end_date > NOW() - INTERVAL '30 days'
OR start_date > NOW() - INTERVAL '30 days'
OR end_date IS NULL

0 comments on commit 6149693

Please sign in to comment.