Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Missing Pages

Status
Not open for further replies.

VVVA

Technical User
Sep 19, 2006
35
US
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
 
a simple left join ought to do it...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top