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!

help with a table

Status
Not open for further replies.

rgaw22

Vendor
Jan 15, 2004
2
GB
I have a table which I added data to on daily basis, one column has serials number in, what I would like to is to be able to link that column with another table which is a linked table to a stock list and for it to tell me it have I not taken that item of stock.

hoppy that all makes sence

 
Hi

Assuming:
the first table you mention is the Stock Issues table (tblIssues)
the second table is the stock items table (tblStockItems
the serial number is the unique identified of the stock item

SELECT * FROm tblStockItems WHERE SerialNo NOT IN (SELECT SeriallNo FROM tblIssues)

using you own table and column naems of course

will do it


Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top