I’m new to MySQL so I really need some help with an issue I’m facing:
I have 7 tables in same database with some datas from tests:
The 7 tables have different columns but they all have these columns:
name.second_name.status.
In status are added current status of each student (accepted or rejected) and I want to display using select the name, second_name from the 7 tables where status = accepted.
I managed to display from 1 table
SELECT name, second_name FROM test1 WHERE status="accepted";
But I can not figure out how to display from all 7.
It will be a real help for me if somebody could give me a hint.
If you do not mind duplicate student names with multiple accepted tests, you can try doing it with
UNION ALL: