Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT name,
- CAST(i.invoice_date AS date) AS date_invoice
- -- поместите поле с датой
- FROM track AS t-- определите левую таблицу
- LEFT JOIN invoice_line AS il ON t.track_id = il.track_id
- LEFT JOIN invoice AS i ON il.invoice_id = i.invoice_id;-- определите вариант присоединения первой таблицы
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement