Hi there guru's
*Psudo Code*
SELECT `serial`.`SerialNumber`, `serial`.`ID_Number` FROM `Serial`, `newbuild` WHERE `serial`.`id_number` not IN `newbuild`.`serial` ORDER BY `date` DESC
Essentially I want to select ONLY values that DON'T appear in the other table:-
Serial Number table
ID_number | Serial
1----------we2345
2----------we2346
3----------we2347
4----------we2348
Newbuild table
ID_number | Serial
1-----------2
2-----------1
3-----------3
So for this mock table, I would only want ID_number 4 to be selected from serial table as the rest are already allocated.
Thanks for any thoughts/suggestions.
Cheers,
MRb
[edited by: Matthew1980 at 10:56 pm (utc) on Mar 13, 2013]