select top 20 p.Id as [Post Link],p.body, c.Id as [Comm...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans

Q&A for music historians, critics, and fans

--Querying Posts that contain "architecture" term 
-- and Comments with contain "useful" or "helpful"


select top 20 p.Id as [Post Link],p.body, c.Id as [Comment Link],c.Text

from Posts p
JOIN Comments c ON p.Id = c.PostId


where p.body like '%architect%' and 
(Text like '%useful%' or Text like '%helpful%')

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results