I want write a stored proc in T-SQL to return the top 5 most highly rated and the bottom 5 most lowly rated articles from an Articles table, determined by the 'rating' column.
I was thinking of using a union on two selects but I'm not sure how to write it.