I need to combine data from two tables. This is how the diagram looks.
In the maze table there are data that are not in ozone, you need to combine the data. For this, I created two tables in which I write the book_id and isbn.
I did it this way because one book can have a lot of isbn
here is an example table
Now I need to compare two maze tables_book_id and ozone_book_id, and compare them on isbn.
And based on this, get a summary of information on the books. I do not know how to write this request. Help. I want to display data in a table on the web in this form.
I specify a question a little
There is a Labyrinth table with books. I take book_id and isbn from it, I do the same in ozone. Then I compare these two tables maze_book_id and ozone_book_id by isbn and if isbn matched then I take book_id from the matched entries in the first and second table and take book_id from ozone_book_id from ozone, for the maze I do the same, just from ozone and the maze different book_id. and the name does not matter which one to take.


