Soldato
- Joined
- 22 Nov 2007
- Posts
- 4,360
Hi, Im having trouble with an SQL query
The query is : Find the most popular product sold over the past year
I have a table called Products which contains the stock , name of product.
And a a purchase table which records the purchases
And a customer table .
The realtionship is customer buys many products, so the purchases table is the link table.
Can anyone help?
The query is : Find the most popular product sold over the past year
I have a table called Products which contains the stock , name of product.
And a a purchase table which records the purchases
And a customer table .
The realtionship is customer buys many products, so the purchases table is the link table.
Can anyone help?