Hi! I have two table person and product. I want show result each person separate by date in SQL query.
Id
|
Name
|
1
|
Ivan
|
2
|
Andrey
|
3
|
Sasha
|
4
|
Kolya
|
Id
|
IdPerson
|
Product
|
Date
|
1
|
1
|
oil
|
22.07.2017
|
2
|
2
|
tomato
|
22.07.2016
|
3
|
3
|
melon
|
22.07.2017
|
4
|
4
|
meat
|
22.07.2015
|
For example: out result:
Id
|
Person
|
Product
|
Date
|
Product
|
Date
|
1
|
Ivan
|
|
|
oil
|
22.07.2017
|
2
|
Andrey
|
tomato
|
22.07.2016
|
|
|
3
|
Sasha
|
|
|
milk
|
22.07.2017
|
4
|
Kolya
|
meat
|
22.07.2015
|
|
|