我有两个查询。第一的:
SELECT TOP 10 NewsItemTitle
, COUNT(1) AS CounterNews
FROM [ACTIVITY]
WHERE [UserLocation] = 'United States'
GROUP BY NewsItemTitle
ORDER BY CounterNews DESC
给我这个:
NewsItemTitle CounterNews
Afinan plan para casas con cuota de $180.000 por mes 5
The Exploratoreum's STEM seller 4
Witnesses at Hasan trial describe carnage of Ft. Hood shootings. 2
U.S. returns to FIFA top 20 after two-year absence 2
Sunnyvale: Police shoot and kill man; body of woman found inside house 1
...
而且,此外,我想在该查询中添加字段[NewsItemUrl]
和[NewsItemPublisher]
:
SELECT [NewsItemUrl]
, [NewsItemPublisher]
FROM [ACTIVITY]
那么,我怎样才能将这 2 个查询合并为 1 个呢?