MySQL Forums
Forum List  »  Oracle

migrating oracle query to mysql query
Posted by: Adi Manohar
Date: August 08, 2006 12:16AM

please any one help to converting this oracle query to mysql


SELECT e.emp_id,e.user_id,e.firstname,e.qualification,e.phone FROM employee_tbl e, users_tbl u WHERE e.user_id=u.user_id AND u.activeflag=1 AND to_number(e.emp_id) IN (SELECT to_number(emp_id) FROM subjecttime_tbl WHERE end_time BETWEEN ? AND ? AND weekday = ? AND activeflag=1
MINUS SELECT to_number(emp_id) FROM subjecttime_tbl
WHERE end_time IN (?) AND weekday = ? AND activeflag=1
UNION "
SELECT to_number(emp_id) FROM subjecttime_tbl
WHERE start_time BETWEEN ? AND ? AND weekday = ? AND activeflag=1
MINUS SELECT to_number(emp_id) FROM subjecttime_tbl
WHERE start_time IN (?)AND weekday = ? AND activeflag=1);

thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
migrating oracle query to mysql query
4105
August 08, 2006 12:16AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.