select username from sqlexp1 where project = 'finance' intersect select username from sqlexp1 where project = 'banking' 2.select c.empid ,c.empname,d.managername from sqlexp2 c left outer join( select b.empid,b.managerid,a.empname as managername from sqlexp2 a , sqlexp2 b where a.empid= b.managerid )d on c.empid = d.empid 3.select a from sqlexp3 union select b from sqlexp3 union select c from sqlexp3 order by a desc
Note: where sqlexp1 ,sqlexp2 ,sqlexp3 are table names 4346781007508187 08066224332 Dharma Matibhya Udgritaha SQUADM Technologies Pvt. Ltd., #1081, 8th Main Road Vijayanagar Bangalore-560040 2015212 rasuta@yahoo.com