It is very common to find a search on sites that returns records from different tables.
I need to implement a search on my site that returns produtos
and usuários
(profile) registered on the site. The result should be mix, but the link to them will be different, eg site.com/perfil/id
and site.com/produto/id
.
Will I need two querys ? Or just with a query with this result?
I can not use JOIN
since my tables are unrelated.
I hope I have been clear.