Hi! I have two table person and product. I want show result each person in one row from two rows in SQL
Id
|
Name
|
1
|
Rustam
|
2
|
Firuz
|
3
|
Asror
|
4
|
Nurullo
|
Id
|
IdPerson
|
Food
|
Fruit
|
Vegetable
|
Water
|
1
|
1
|
oil
|
apple
|
|
|
2
|
1
|
|
|
tomato
|
RC-cola
|
3
|
2
|
oil
|
apple
|
|
|
4
|
2
|
|
|
tomato
|
RC-cola
|
5
|
3
|
oil
|
apple
|
|
|
6
|
3
|
|
|
tomato
|
RC-cola
|
For example: out result:
Id
|
Person
|
Food
|
Fruit
|
Vegetable
|
Water
|
1
|
Rustam
|
oil
|
apple
|
tomato
|
RC-cola
|
2
|
Firuz
|
oil
|
apple
|
tomato
|
RC-cola
|
3
|
Asror
|
oil
|
apple
|
tomato
|
RC-cola
|