この基本的な相談はSQLですが、管理スタジオでこのエラーが発生しています:
SELECT *
FROM [Oficios_dev2].[dbo].[doc].[typecdocumentdet] as [C]
where [C].[TypeCDocument] in (select [Oficios_dev2].[dbo].[doc].[TypeCDocument] as [D]
where [D].[Id] = '1')
エラー
Msg 4104, Level 16, State 1, Line 3
The multi-part identifier "D.Id" could not be bound.
Msg 4104, Level 16, State 1, Line 3
The multi-part identifier "Oficios_dev2.dbo.doc.TypeCDocument" could not be bound.
理由がわかりません、誰か?ありがとう
編集: 新しいクエリ:
SELECT *
FROM [Oficios_dev2].[dbo].[doc] as [C] where [C].[TypeCDocument] in (select [Oficios_dev2].[dbo].[doc] from [Oficios_dev2].[dbo].[doc] as [D] where [D].[Id] = '1')
これにより、エラーが少なくなります 1
The multi-part identifier "Oficios_dev2.dbo.doc" could not be bound.