I've been stuck on a query where there is a CUSTOMER and a PHONE table.
It is a one to many relationship, in which a CUSTOMER and have many PHONE numbers
The table is like the following:
---CUSTOMER---
cust_ID
cust_Name
---PHONE---
cust_ID
Phone_type (M or O for mobile/office respectively)
phone_no
I want to write a query where the output would be similar to the following:
cust_name | M_Phone | O_Phone
Where the M_Phone is the mobile number and the O_Phone is the office number.