I have one table ticket and other table log. There are many logs for each row in ticket. I want to know if certain string is in some log and then fetch one register from ticket it doesn’t matter which one, because I just want to get one row per ticket. Here is what I have at the moment:
SELECT ticket.id,ticket.description,ticket.owner
FROM ticket
JOIN log
ON (log.ticketid=ticket.id)
where log.description LIKE '%someparameter%'
What should I do in this case?
Or…