+ 1
I am not sure, but I think you have to select the book1.bno column too to make it work.
11th Jan 2019, 8:07 AM
Jan Ơtěch
Jan Ơtěch - avatar
0
Do you really have two tables called book and book1? Sound strange. If you are trying this in sololearn playground then it will surely not work as there is no SQL support here.
11th Jan 2019, 8:57 AM
Tibor Santa
Tibor Santa - avatar
0
The best query is to use Join for exemple select t1.* , t2.* FROM table1 as t1 LEFT JOIN table2 AS t2 ON t1.id = t2.id WHERE t2.id IS NOT NULL
11th Jan 2019, 9:53 AM
Elghozi Nasreddine
Elghozi Nasreddine - avatar