The situation is the following, in the database there are 2 tables:
master (id, name)
employee (id, name)
I want to build a 1 SELECT query for fetching data.
I make a query (merge columns from 2 tables. In one column):
SELECT master.name FROM master UNION ALL SELECT employee.name FROM master everything is fine here, but I don’t know how to add more fields to this query.
This is what I mean by:
SELECT поле23, поле24 + *запрос указанный выше*