I want to delete using INNER JOIN in SQL Server 2008.
INNER JOIN
But I get this error:
Msg 156, Level 15, State 1, Line 15<
Try this query :
DELETE WorkRecord2, Employee FROM WorkRecord2 INNER JOIN Employee ON (tbl_name.EmployeeRun=tbl_name.EmployeeNo) WHERE tbl_name.Company = '1' AND tbl_name.Date = '2013-05-06';