I have the following table in a MySql database:
**EmpInfo**
ID Name Address
--------------------------------------------------------
10001 Rocky Silva 11, satellite street
**EmpContact** notion ( M for mobile number and L for Landline number)
ID Phone Type
--------------------------------------------------------
10001 909099925 M
10001 20222525 L
I want to create a view in such a way that it returns me following in a single row (not in double rows after cartesian product):
10001 Rocky Silva 11, satellite street 909099925 20222525
Can any one help me with a query? I have tried different joins but with no luck; I think I am missing something…
1 Answer