Q&A for professional and enthusiast programmers
-- ReturnNum: Number of results "How many should be outputted" /*CREATE FUNCTION split ([ {@string AS str}, {@delim AS char} ]) RETURNS table BEGIN -- END */ SELECT TOP ##ReturnNum:int?10## PostId AS [Post Link], PostHistoryTypeId FROM PostHistory WHERE PostHistoryTypeId = 10 ORDER BY Id DESC;