insert into Employee_Document
values(FristName, LastName, BeginWeek, EndWeek,
Hrs_Mon, hrs_tues, Hrs_Wed, Hrs_Thu, Hrs_Fri, Total_Hours,
TaskDesc_Mon, TaskDesc_Tues, TaskDesc_Wed, TaskDesc_Thu, TaskDesc_Fri, '')
select
FristName, LastName, BeginWeek, EndWeek,
TotalHours where TimeSheetDate='31-12-2012' AS Hrs_Mon,'08:00:00',
TotalHours where TimeSheetDate='02-01-2013' AS Hrs_Wed,
TotalHours where TimeSheetDate='03-01-2013' AS Hrs_Thu,
TotalHours where TimeSheetDate='04-01-2013' AS Hrs_Fri,
TaskDescription where TimeSheetDate='31-12-2012' AS TaskDesc_Mon,
TaskDescription where TimeSheetDate='02-01-2013' AS TaskDesc_Wed,
TaskDescription where TimeSheetDate='03-01-2013' AS TaskDesc_Thu,
TaskDescription where TimeSheetDate='04-01-2013' AS TaskDesc_Fri,''
from
vw_TSDailyTotalHoursTaskDesc)
由于我是 SQL Server 的新手,因此此语句是否有任何错误。
提前致谢。