I've got the following query, that looks up the TOP 5 Products matching the search. Each Product is associated with a Shop
SELECT TOP 5 * FROM Products p, Shops s WHERE p.ShopId = s.ShopId AND p.ProductName LIKE '%christmas%'
I need to extend this so that it returns me the TOP 5 Products in each Shop.
Could anyone let me know how the query could be modified to achieve this? - i.e. choose the TOP 5 products matching "%christmas%" in each shop (rather than the current which shows the TOP 5 products matching "%chrismas%" across all shops).