Q&A for professional and enthusiast programmers
select PostId as [Post Link], 'http://stackoverflow.com/posts/' + cast(p.Id as varchar(100)) + '/revisions' from PostHistory ph join Posts p on p.Id = ph.PostId where PostHistoryTypeId = 2 and Text = upper(Text) COLLATE SQL_Latin1_General_CP1_CS_AS and ph.CreationDate > getutcdate() - 30 and p.PostTypeId in (1,2)