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

SQL Statement

Status
Not open for further replies.

maha12

Programmer
Sep 8, 2002
79
LK
Hello All,

Is there a SQL Statement to filter the following records.

Tab1:
ID PONo PoDate
11 1000 12/05/04
22 2000 12/05/04
33 3000 13/05/04
Tab2
ID PRNo Description
11 PR1 Desc 1
11 PR2 Desc 2
22 P20 Desc 20

Tab1.ID is a primary key and relate to Tab2.ID. I want to filter all PRNos which relate to PONo=1000

Tks
Maha



 
Try something like this,

Code:
SELECT Tab1.*, Tab2.*
FROM Tab1 INNER JOIN Tab2 ON Tab1.ID = Tab2.ID
WHERE (PONo = 1000)

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top