I have a list of serial numbers, i need to search them for a match to my number + 200 and -200
Can anyone please help?
TIA
Cliff
Can anyone please help?
TIA
Cliff
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT TOP 1 SN FROM (SELECT TOP 3 SN FROM tblSN
WHERE SN < [SerialNumber] ORDER BY SN DESC) ORDER BY SN
SELECT TOP 1 SN FROM (SELECT TOP 3 SN FROM tblSN
WHERE SN >= [SerialNumber] ORDER BY SN) ORDER BY SN DESC
SELECT SN FROM qrySNBottomRange
UNION
SELECT SN FROM qrySNTopRange