SELECT [SKULL].[dbo].[reports].[idnumber], [SKULL].[dbo].[reports].[subid]
FROM [SKULL].[dbo].[reports]
WHERE reportColumn = (SELECT DISTINCT(reportColumn)
FROM [SKULL].[dbo].[reports]
WHERE [SKULL].[dbo].reports.reportColumn
LIKE '%someword%')
エラーメッセージが表示されます
Msg 512, Level 16, State 1, Line 2
Subquery returned more than 1 value.
This is not permitted when the subquery follows =, !=, <, <= , >, >= or
when the subquery is used as an expression.
ありがとう。