SQL Server-交叉使用计数功能

| 如何计算此查询的结果?
SELECT id FROM table1 where  col1 like \'%abcd%\'
intersect
SELECT id from table2 where col2 like \'%efgh%\'
    
已邀请:
SELECT COUNT(*) FROM
(
 SELECT id FROM table1 where  col1 like \'%abcd%\'
 intersect
 SELECT id from table2 where col2 like \'%efgh%\'
) I
    

要回复问题请先登录注册