次のクエリを (Foodmart 2000 に対して) 実行しようとしていますが、これは MySQL で正常に動作します。SQL Server 2005 では、"Syntax error near '" メッセージしか表示されません。
SELECT * FROM ((SELECT COUNT(state_province) AS 'WA'
FROM customer c1
WHERE c1.state_province LIKE 'WA'
GROUP BY c1.state_province) as t1,
(SELECT COUNT(state_province) AS 'OR'
FROM customer c1
WHERE c1.state_province LIKE 'OR'
GROUP BY c1.state_province) as t2,
(SELECT COUNT(state_province) AS 'CA'
FROM customer c1
WHERE c1.state_province LIKE 'CA'
GROUP BY c1.state_province) as t3);
この問題の正確な原因は何ですか?