I have 2 tables
Table 1
===================================
= Id = Name = email =
===================================
= 1 = David = d@d.com =
===================================
Table 2
==================================
= uid = key = Value =
==================================
= 1 = Age = 18 =
= 1 = Tele = 0123456798 =
==================================
The idea is that UID relates to Id to link the tables.
What i would like to do is run one SQL query to get the follow output.
=========================================================================
= Id = Name = email = age = Tele =
=========================================================================
= 1 = David = d@d.com = 18 = 012345678 =
=========================================================================
What is the query I need to run.
Thanks
Something like this:
The above query works if you know the keys in advance.
It names are unknown get the list of available key names from database: