Trying to create a SQLCommand in VB.NET to do a SELECT from 3 different tables.
Table1 - Shipper
Contains - LotNum, CustOrderNum
Table2 - CustOrder
Contains - CustOrderNum, CustNum
Table3 - Customer
Contains - CustNum, CustName
The tables contain more, but these are the columns I am working with.
The User scans a Lot Number (LotNum) and I want it to display the Customer Name (CustName) in a Label or Text Box.
Was thinking is was something like this...
SELECT LotNum, CustOrderNum from Shipper INNER JOIN CustOrder ON CustOrderNum INNER JOIN Customer ON CustName GROUP BY CustName WHERE LotNum = TextBox1.Text.
Or something similar...
Table1 - Shipper
Contains - LotNum, CustOrderNum
Table2 - CustOrder
Contains - CustOrderNum, CustNum
Table3 - Customer
Contains - CustNum, CustName
The tables contain more, but these are the columns I am working with.
The User scans a Lot Number (LotNum) and I want it to display the Customer Name (CustName) in a Label or Text Box.
Was thinking is was something like this...
SELECT LotNum, CustOrderNum from Shipper INNER JOIN CustOrder ON CustOrderNum INNER JOIN Customer ON CustName GROUP BY CustName WHERE LotNum = TextBox1.Text.
Or something similar...