我有这个查询和as clicks
我想做的子查询where clicks > 0
,但是我收到一个错误,指出这不是一个可识别的列。
SELECT top 10 *, (select count(*) FROM po_events aeclk WITH(NOLOCK) where (aeclk.[source] = ae.[source]) as clicks
FROM archived_events ae with(NOLOCK)
where clicks > 0
我有这个查询和as clicks
我想做的子查询where clicks > 0
,但是我收到一个错误,指出这不是一个可识别的列。
SELECT top 10 *, (select count(*) FROM po_events aeclk WITH(NOLOCK) where (aeclk.[source] = ae.[source]) as clicks
FROM archived_events ae with(NOLOCK)
where clicks > 0