delphinewbie
Programmer
The following is the corresponded table :
Customer
----------------
CustomerID
CustName
ProductID
SupplierID
Product
----------------
ProductID
ProductName
ProductDesc
Supplier
----------------
SupplierID
SupplierName
SupplierTelNo
I'm try to join all the 3 tables(Join Customer table with Product Table, and Customer Tabel with Supplier Table)
So what SQL statement should i used ?
I guess it should b something like this:
(Let's assume Customer Table is A, Product Table is B, and Supplier Table is C
So A.ProductID=B.ProductID, and A.SupplierID=C.SupplierID ....
I know how to join the table when it's with 2 tables. But how to join all 3 of the table??
Thx in advance for ur help..
Customer
----------------
CustomerID
CustName
ProductID
SupplierID
Product
----------------
ProductID
ProductName
ProductDesc
Supplier
----------------
SupplierID
SupplierName
SupplierTelNo
I'm try to join all the 3 tables(Join Customer table with Product Table, and Customer Tabel with Supplier Table)
So what SQL statement should i used ?
I guess it should b something like this:
(Let's assume Customer Table is A, Product Table is B, and Supplier Table is C
So A.ProductID=B.ProductID, and A.SupplierID=C.SupplierID ....
I know how to join the table when it's with 2 tables. But how to join all 3 of the table??
Thx in advance for ur help..