Hi I have a problem getting top 10 products.
The scenario is: I have table of products which contain productid and date. I have method to get product by Id and loop it, but dont know how to get the most frequent product listed then.
I need to get top 10 products from a range date.
Basically I have list of products with their stock and list of orders with a product FK
I get the product FK from each order and get the top ten products which are most frequent from all the orders.
You can simply select your product list by creating a stored procedure and calling your table.
In the stored procedure you can select your product list by using
ORDER BYclause
for eg.
Thanks