1: 2: 3:
SELECT tickets_extra.date, tickets.name, tickets.ticket_number, tickets_extra.hours FROM tickets LEFT OUTER JOIN tickets_extra ON tickets.id = tickets_extra.id WHERE (tickets.client_id = @client_id)