I am wondering if I can do this using SQL query. I have a table called "data" which contains the product name, date and sale number.
my table look like this:
Product date Sale
apple 1/1/2019 5
apple 2/1/2019 4
apple 3/1/2019 3
apple 4/1/2019 2
apple 5/1/2019 1
orange 1/1/2019 1
orange 2/1/2019 2
orange 3/1/2019 3
orange 4/1/2019 4
orange 5/1/2019 5
pear 1/1/2019 6
pear 2/1/2019 4
pear 3/1/2019 3
pear 4/1/2019 2
pear 5/1/2019 5
strawberry 1/1/2019 6
strawberry 2/1/2019 3
strawberry 3/1/2019 7
strawberry 4/1/2019 4
strawberry 5/1/2019 2
I would like to set a SQL query to find the product(s) which have increase sale number at certain 2 dates.
e.g. find all product which the sale number on 3/1/2019 is greater then 1/1/2019 and it should return orange and strawberry.
I am quite new into the programming world and any help is appreciated. Thanks in advance!