Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry
SELECT TOP(##num?100##) p.Id AS [Post Link], ph.Text AS [Initial Title], concat('site://posts/', p.Id, '/revisions' ) [Revisions Link], p.OwnerUserId AS [User Link], p.Score, p.Tags, p.CreationDate FROM Posts p INNER JOIN PostHistory ph ON ph.PostId=p.Id WHERE (ph.PostHistoryTypeId=2) AND (p.PostTypeId=1) AND (len(ph.Text)<=##len?150##) AND (ph.Text Like '%##word?urgent##%' COLLATE Latin1_General_CI_AI) ORDER BY p.Id DESC ---PostHistoryTypeId (listed in the PostHistoryTypes table) ---1 = Initial Title - initial title (questions only) ---2 = Initial Body - initial post raw body text