Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

not getting query proper value in mysql

$
0
0

Hi all,

       I am having a query in which am getting proper value by joining two tables below is the syntax

select distinct t.user_id, first_name,last_name from tbl_user t left join tbl_req_task_map r on t.user_id=r.created_by where t.user_id not in(select created_by from tbl_req_task_map where actual_start='2014-12-31')and t.isactive=1 and superuser=0 order by first_name

but i want to join one more table in the above query and that table is "tbl_empleave_details" in the table there are three columns user_id,From_date and To_date . I want to get data as those user_id dates are not between from_date and to_date.

 


Viewing all articles
Browse latest Browse all 1350

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>