Q&A for users and developers of the Cardano cryptocurrency ecosystem
DECLARE @Tag NVARCHAR(50) = ##Tag:string## SELECT TOP 15000 q.Id AS [Post Link], q.ViewCount, q.Tags FROM Posts AS q LEFT JOIN Posts AS pq ON q.ParentId = pq.Id WHERE q.PostTypeId = 1 -- Only retrieve questions AND q.Tags LIKE '%' + @Tag + '%' -- Filter by the provided tag ORDER BY q.ViewCount DESC