下面是我的 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