You are on page 1of 1

select

a.tn,
a.title,
b.name as status,
a.customer_id,
a.customer_user_id,
a.create_time,
CONCAT(c.first_name,' ',c.last_name) as Responsible
from ticket as a, ticket_state as b, users as c
where
a.ticket_state_id=b.id and
a.responsible_user_id = c.id and
a.create_time like '2016-03-30%'
order by tn DESC

You might also like