Hi,
I am getting stumped on how to do this query.
I have two tables:
Platter
Header
Platter has:
ImgPtr|PlatterId
Header has:
DocumentIndex|ImgPtr|Pagenum
I need a query that only returns records from the header that are complete in platter. The ImgPtr is linked from Platter to Header.
Example:
Platter
SXST.1|BBD1
STSU.1|BBD1
TVDM.1|BBD3
TXRZ.1|BBD8
Header:
12345|SXST.1|1
12345|SXSU.1|2
12345|LTX1.1|4
12456|TVDM.1|1
12456|TXRZ.1|2
So in the query, I only want to see 12456. 12345 should not be displayed because one of it's imgptr's(LTX1.1) does not exist in the platter table. I think I have to use max and min for the pagenum. If a documentindex has an imageptr not in the plattertable, than I don't want to see the documentindex. Since a document index can have a few imgptr's that exist in the platter table, and a few that don't I don't know how to do the right query.
Hope this makes sense. Please help. Thanks.
I am getting stumped on how to do this query.
I have two tables:
Platter
Header
Platter has:
ImgPtr|PlatterId
Header has:
DocumentIndex|ImgPtr|Pagenum
I need a query that only returns records from the header that are complete in platter. The ImgPtr is linked from Platter to Header.
Example:
Platter
SXST.1|BBD1
STSU.1|BBD1
TVDM.1|BBD3
TXRZ.1|BBD8
Header:
12345|SXST.1|1
12345|SXSU.1|2
12345|LTX1.1|4
12456|TVDM.1|1
12456|TXRZ.1|2
So in the query, I only want to see 12456. 12345 should not be displayed because one of it's imgptr's(LTX1.1) does not exist in the platter table. I think I have to use max and min for the pagenum. If a documentindex has an imageptr not in the plattertable, than I don't want to see the documentindex. Since a document index can have a few imgptr's that exist in the platter table, and a few that don't I don't know how to do the right query.
Hope this makes sense. Please help. Thanks.