Displaying Result from an "INNER JOIN"
TABLE 1
EMPLID NAME
1, JOE
2, BILL
TABLE 2
EMPLID TYPE NUMBER
1, PHONE, 555-1212
1, FAX, 555-1313
1, PAGER, 555-1414
2, PHONE, 555-1616
2, PAGER, 555-1515
How to code so the result will display like
Joe
phone: 555-1213
fax: 555-1313
page: 555-1515
Bill
phone: 555-1616
pager: 555-1515
right now I am getting
Joe phone: 555-1213
Joe fax: 555-1313
Joe page: 555-1515
Bill phone: 555-1616
Bill pager: 555-1515
I know i could have a queries inside the result and get the result i need but I would prefer to use an inner join