MySQL Forums
Forum List  »  Newbie

Select date from a table
Posted by: Lee Wei Samuel
Date: May 13, 2018 12:53PM

Hi guys,

I have a few tables . I would need to find the employee id, first name and last name from a shipping department that worked for more than 1500 days.

what I have done is as follows

SELECT employee_id, first_name, last_name FROM EMPLOYEE WHERE department_name = 'shipping';

But how do i calculate which employee has worked more than 1500 days? Assuming the calculation date is from curdate.

Many thanks

Options: ReplyQuote


Subject
Written By
Posted
Select date from a table
May 13, 2018 12:53PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.