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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Query Infomaker 9.0 1

Status
Not open for further replies.

kenadys

Technical User
Aug 14, 2002
13
0
0
US
I am working with Infomaker on an existing report. The report pulls data by entering in dates. The data extracted consists of customers and their contracts. The report lists each contract number, but each contract may have serveral of the same invoice numbers depending upon what services where done and their dates. If all services for a particular contract are completed, the code column will contain 'PM'. I want to exclude ALL the invoice data from the report IF the code column is = [PM].

 
Without table structures we just have to guess bot something like should work.

select * from contracts where date between somedate and someotherdate and
not exists
(select * from invoice where code = 'PM' and
invoice.contractid = contract.id )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top