轉換日期和/或時間下面是我的SQL查詢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
我建議你試着看看其他類似的問題。其中一些現在位於右側的*相關*部分。 –
版本mssql 2008 – user1820110
對不提供服務器詳細信息 – user1820110