我正在尝试以格式获取数据的水平输出
查询是:
SELECT RDT1.County_Name
,RDT1.DistributionNumber as Dist_No
,RDT1.Vac_Allocated
,RDT1.Priority,RDT2.DistributionNumber as Dist_No
,RDT2.Vac_Allocated as Vac_Allocated
,RDT3.DistributionNumber as Dist_No
,RDT3.Vac_Allocated as Vac_Allocated
FROM Result_Distribution_Table AS RDT1
,Result_Distribution_Table AS RDT2
,Result_Distribution_Table AS RDT3
WHERE RDT1.County_Name = RDT2.County_Name AND
RDT1.DistributionNumber = 1 AND
RDT2.DistributionNumber = 2 AND
RDT3.DistributionNumber = 3 AND
RDT1.County_Name = RDT3.County_Name
WHERE Solution_id= "10"
当我执行这个查询时,我得到一个响应
消息 4104,级别 16,状态 1,行 1
无法绑定多部分标识符“Solution_id”。
Solution_id
是中的一列Result_Distribution_Table
。
请帮助我做错了什么以及解决方案是什么?