我检查了搜索,但似乎没有人回答这个问题..我希望它非常简单:我有一个查询结果为两列,但我需要它产生两行..有人知道怎么做吗?
这是查询:
SELECT (SELECT COUNT(Id) AS Expr1
FROM Table
WHERE (Description LIKE 'door%')) AS Door,
(SELECT COUNT(Id) AS Expr1
FROM Table AS Table_1
WHERE (Description LIKE 'window%')) AS Window
我得到的结果是(当然):
[Door] [Window]
56 34
我想要的结果如下:
[OPTION] [NROfRecords]
Door 56
Window 34
有任何想法吗?提前致谢!