I am trying to do a UNION statement between 2 Select statements where they both will do an Order By first and then give me the top 3 for each....
Select Top 3 BlogID, Headline, [Text], DateAdded, Picture1, Picture1URL, 'Movies' From BlogMovies ORDER BY DateAdded DESC
UNION
Select Top 3 BlogID, Headline, [Text], DateAdded, Picture1, Picture1URL, 'TV' From BlogTV ORDER BY DateAdded DESC
I know the code above doesn't work...but how can I get the 3 most recent blogs for each and combine them together in a UNION statement?
Start Free Trial