If I have these three tables, how can I quickly get a list of missing pages, pages that are in the testbook table, but not in the Pages table, and that are less than the maxpage for that book?
Code:
Pages
--------------------------
Book Page
000001 0001
000001 0003
000002 0001
000002 0005
Code:
Maxpage
--------------------------
Book Maxpage
000001 0003
000002 0005
Code:
Testbook
--------------------------
Page
0001
0002
....
9999