Q&A for professional and enthusiast programmers
DECLARE @UserId int = ##UserId## SELECT Id FROM Posts WHERE Posts.OwnerUserId = @UserId and Posts.Body like '%.jpg%'