1 query 2 separate tables

Good morning.

I have a django project. I have 2 seperate tables which have completely different headers.

How do i use 1 search query for both tables ?

Is it something similar to .union ?


I’m assuming that when you say:

you actually mean that they have different schemas - a different column structure.

You don’t.

Technically, even a union results in two queries being executed by the database.