我有一个具有以下字段的表:多部分标识符“IncomeExpenses.OperationId”无法绑定
OperationID,
Date,
TotalExpenses,
TotalIncome
我使用下面的SQL查询来获取基于TotalExpenses
和TotalIncome
之间的区别指定OperationID
:
select
(select (Date) from IncomeExpenses)
,(select (totalincome) from IncomeExpenses)
-(select (totalexpenses) from IncomeExpenses)
where IncomeExpenses.OperationId ='1'
但是我得到这个错误:
The multi-part identifier "IncomeExpenses.OperationId" could not be bound
我可能会做错什么?
谢谢你,这对我有效 –