[英]Nested SQL Statements2
What tables are present in this code? 此代码中存在哪些表?
SELECT
ProjectUID,
ProjectName,
FROM
(SELECT
MSP_TimesheetPeriod.PeriodName AS PeriodName,
MSP_TimesheetPeriod.PeriodUID AS PeriodUID,
FROM
(SELECT
MSP_TimesheetLine.TimesheetLineUID,
MSP_TimesheetActual.TimeByDay AS TimeByDay, --
SUM(MSP_TimesheetActual.PlannedWork) AS PlannedWork,
FROM
dbo.MSP_TimesheetLine
LEFT OUTER JOIN
dbo.MSP_TimesheetActual ON MSP_TimesheetLine.TimesheetLineUID = MSP_TimesheetActual.TimesheetLineUID) AS TimesheetLineData
INNER JOIN
dbo.MSP_TimesheetLine ON MSP_TimesheetLine.TimesheetLineUID = TimesheetLineData.TimesheetLineUID) AS MSP_TimesheetLine_UserView
INNER JOIN
MSP_TimesheetLine_OlapView AS ov ON MSP_TimesheetLine_UserView.TimesheetLineUID = ov.TimesheetLineUID
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.