1: 2: 3:
SELECT Materials.*, BWeighs.BatchID FROM Materials LEFT JOIN BWeighs ON Materials.ID = BWeighs.Material WHERE BWeighs.BatchID=[] OR IsNull(BWeighs.Material);