13 lines
245 B
MySQL
13 lines
245 B
MySQL
|
SELECT
|
||
|
c.id,
|
||
|
c.socialName,
|
||
|
c.street,
|
||
|
c.postcode,
|
||
|
c.city,
|
||
|
c.fi,
|
||
|
p.name AS province,
|
||
|
ct.country
|
||
|
FROM client c
|
||
|
JOIN country ct ON ct.id = c.countryFk
|
||
|
LEFT JOIN province p ON p.id = c.provinceFk
|
||
|
WHERE c.id = ?
|