SQL Server 2012 Multi-part identifier " konnte nicht gebunden werden

Ich habe 4 Tabellen, die ich bin bei der Adventureworks-Datenbank 2012. Ich kann nicht herausfinden, warum ich bin immer das 'konnte nicht gebunden werden-Fehler'.

Msg 4104, Ebene 16, Status 1, Zeile 7

The multi-part identifier " - Produktion."ProductCategory".Name" konnte nicht gebunden werden.

Msg 4104, Ebene 16, Status 1, Zeile 1

The multi-part identifier " - Produktion."ProductCategory".Name" konnte nicht gebunden werden.

SELECT
    COUNT(WorkOrderID) AS TotalWorkOrders, 
    [Production].[ProductCategory].[Name]
FROM [Production].[WorkOrder] WO
INNER JOIN [Production].[Product] P ON WO.[ProductID] = P.[ProductID]
INNER JOIN [Production].[ProductSubcategory] PS ON PS.[ProductSubcategoryID] = P.[ProductSubcategoryID]
INNER JOIN [Production].[ProductCategory] PC ON PC.[ProductCategoryID] = PS.[ProductCategoryID]
WHERE WO.[StartDate] >= '1999—03-08' AND WO.[StartDate] <= '2008-05-02'
GROUP BY [Production].[ProductCategory].[Name]

InformationsquelleAutor Iansberg | 2015-12-07

Schreibe einen Kommentar