diff --git a/2.5.sql b/2.5_FINAL.sql similarity index 56% rename from 2.5.sql rename to 2.5_FINAL.sql index 56c4e59..eeeb73d 100644 --- a/2.5.sql +++ b/2.5_FINAL.sql @@ -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