Using an SQL JOIN example from StackOverflow, What is the difference between "INNER JOIN" and "OUTER JOIN"?
Would like to know if this is returned from a Store-procedure, how would return distinct value name and phone number from the example below. Even if I create an XML string, even then I cant select DISTINCT values. Any help?
select name, phone, selling
from people join property
on people.pid = property.pid;
+-----------+--------------+----------------------+
| name | phone | selling |
+-----------+--------------+----------------------+
| Mr Brown | 01225 708225 | Old House Farm |
| Mr Pullen | 01380 724040 | The Willows |
| Mr Pullen | 01380 724040 | Tall Trees |
| Mr Pullen | 01380 724040 | The Melksham Florist |
+-----------+--------------+----------------------+