Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Quering two tables at the same time

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-07-17 : 11:59:51
Dereshin writes "I need to query 2 table simultaneously. the ORDERENTRY table has a field called ORDERNO, this ORDERNO field has duplicate records in it. I need to find all the duplicate records in the ORDERNO field that have a link to another field. The link is that all duplicates have the following: PAYMENT is due on the ORDERLINEITEM table. In this table the field PAYMENT is set to 1 = overdue. I need to find all records that are duplicated in the ORDERNO field and PAYMENT is overdue in the ORDERLINEITEM table in the is overdue.

Thanks
Dereshin"
   

- Advertisement -