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
IdPerson
Food
Fruit
Vegetable
Water
oil
apple
tomato
RC-cola
5
6
For example: out result:
Person
SELECT IdPerson ,MAX(Food) AS Food ,MAX(Fruit) AS Fruit ,MAX(Vegetable) AS Vegetable ,MAX(Water) As Water FROM Table_2 GROUP BY IdPerson
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.