MySQL Forums
Forum List  »  General

comparing dates
Posted by: Anindya Mozumdar
Date: April 25, 2005 09:38AM

Hi,
I have two variables named emp_hire_dt and emp_term_dt in a table. I want to remove all employees whose termination date is before hire date. Will the following work -

delete from <tablename> where emp_term_dt < emp_hire_dt;

Thanks in advance.
Anindya.

Options: ReplyQuote


Subject
Written By
Posted
comparing dates
April 25, 2005 09:38AM
April 25, 2005 10:45AM


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.