I have three tables in the DB , These are EMP_MASTER MBO_MASTER and REPORTING_MASTER, all these table having EMP_NO as a common field, I want to display all the data of EMP_MASTER for EMP_ID='4000004' on the basis of MBO_MASTER field MBORQ_ID is equal to 2 for EMP_ID='4000004' and Whose SUP_ID is '12121212' in REPORTING_MASTER
select * from Emp_master as a inner join MBO_master as b on a.emp_no = b.emp_no inner join reporting_master as c on on a.emp_no = c.emp_no where a.EMP_ID=4000004 and b.MBORQ_ID =2 and c.sup_id =12121212
SELECT FROM Emp_Master e JOIN Mbo_Master m ON e.Emp_No=m.Emp_No JOIN Reporting_Master r ON e.Emp_No=r.Emp_No WHERE m.EBORQ_ID=2 AND e.EMP_ID='4000004' AND r.SUP_ID='12121212'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)