Hi All,
I have a question to be solved. Its a tricked one for me.
prod_id sale_date order_id quantity
p1 1/10/2012 1 2
p1 1/10/2012 2 5
p2 1/10/2012 1 3
p3 1/10/2012 2 6
p2 1/11/2012 6 2
p3 1/11/2012 6 3
p1 1/12/2012 9 3
p2 1/12/2012 9 6
p3 1/12/2012 9 7
Above shown is a table (name-sales_rec)
Now if i want to fetch the PROD_ID WHICH IS SOLD IN ALL THE THREE DAYS i.e. 10th ,11th,12th jan. and also the quantity also.
How can we find this?
Could some one please help me.
Thanks in advance.
Preetpal kapoor