How can i fetch data from a single column according to their respective data_id for a and group_id ?
--------------------------------------------
id | group_id | data_id |value
--------------------------------------------
1 20 15 Product1
2 20 1 Name1
3 20 2 Location1
4 20 3 Price1
5 20 4 Tag1
6 21 15 Product2
.
.
. and so on
Disered Output is :
--------------------------------------------
Product | Name | Location | Price | Tag
--------------------------------------------
Product1 Name1 Location1 Price1 Tag1
Product2 Name2 Location2 Price2 Tag2
Update if data_id=15 AND value = 'Product1' then all the values related to Product1 should be fetched from the data base, if data_id=15 AND value = 'Product2' then all the values related to Product2 should be fetched