12 lines
228 B
MySQL
12 lines
228 B
MySQL
|
SELECT
|
||
|
c.name,
|
||
|
c.socialName,
|
||
|
c.street,
|
||
|
c.fi,
|
||
|
c.city,
|
||
|
r.amountPaid,
|
||
|
r.payed
|
||
|
FROM client c
|
||
|
JOIN receipt r ON r.clientFk = c.id
|
||
|
JOIN supplier s ON c.fi = s.nif
|
||
|
WHERE r.id = ?;
|