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!

need help linking tables please

Status
Not open for further replies.

ss7415

Programmer
Dec 7, 2006
84
US
i currently have

INNER JOIN qad_table ON CSD_TABLE.SUP_PART = QAD_TABLE.PART AND CSD_TABLE.SUP_PROJECT = QAD_TABLE.PROJECT

but if the qad_table.part is null , i want the first link to be

csd_table.sup_ord_nbr = qad_table.wo_nbr

thank you
 
Code:
INNER JOIN qad_table ON
      (CSD_TABLE.SUP_PART = QAD_TABLE.PART OR
       csd_table.sup_ord_nbr = qad_table.wo_nbr) AND            
       CSD_TABLE.SUP_PROJECT = QAD_TABLE.PROJECT
not tested at all



Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
i am getting alot of duplicats, i want to do the other link (csd_table.sup_ord_nbr = qad_table.wo_nbr) if part is null in the qad table. if it isnt then i want to do part on part
 
actually i need to do more investigation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top