Select * From #Tmp1 t1 Left Join #Tmp2 t2
On t1.RouteID = t2.RouteID Join chr.dbo.Employee ee
On t1.EmployeeID = ee.EmployeeID Join chr.dbo.Department d
On ee.DepartmentCode = d.DepartmentCode
Order by t1.AreaGroup, t1.FrGroups, t2.AreaGroup, t2.ToGroups
这是我的示例临时表
如何为报表生成器创建 TableAdapter?
当我创建 TableAdapter 时,向导的结果是这样的......
生成的 SQL 语句。
无效的对象名称“#Tmp1”
我该如何解决这个问题?