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

Issue with retrieving data

Status
Not open for further replies.

winston1984

IS-IT--Management
Jun 4, 2004
17
GB
I have the following query. i want to check that the two prices are either the same or with two pence of each other either side, any ideas?

SELECT Ison7.SystemLC, Stock.TotalLandedCost, Ison7.IDPartNumber, Stock.IDPartNumber AS Expr1
FROM Ison7 INNER JOIN
Stock ON Ison7.IDPartNumber = Stock.IDPartNumber AND Ison7.SystemLC <> Stock.TotalLandedCost
 
SELECT Ison7.SystemLC, Stock.TotalLandedCost, Ison7.IDPartNumber, Stock.IDPartNumber AS Expr1
FROM Ison7 INNER JOIN
Stock ON Ison7.IDPartNumber = Stock.IDPartNumber AND (Ison7.SystemLC BETWEEN Stock.TotalLandedCost - 0.02 AND Stock.TotalLandedCost + 0.02)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top