以下は私のSQLクエリです
何か提案してください
select p.e_id as Employee_Id, p.ename as Name,p.eadd1 as Address,
p.eprof as Profession,p.eactive as salary,
(select count (d.pr_id) from employee_presency d
where d.e_id = p.e_id and d.t_date
between '01-06-2013' and '31-06-2013')
as presency,(select sum(c.payment) from emp_payment c
where c.e_id = p.e_id and c.pay_date
between'01-06-2013'
and '31-06-2013' ) as Salary from Employee p