I currently have 2 tables for tickets. Table 1 is tickets and table 2 is repsonses.
I currently do
select id, subject, description
from tickets
where subject like '%hello%';
This works but I also want to return the same fields but where hello matches the message field in the responses table.
E.g. I was hoping I could do:
select id, subject, description
from tickets, responses
where tickets.subject like '%hello%' OR responses.message like '%hello%';
ticketid in the responses table is the same as id in the tickets table.
If there will always be a responses record:
If tickets can exist without responses: