sql - Access 2010 Query Confusion -


just need quick clarification

i have 2 queries in access database should return inverse results:

select equipment.title equipment (((equipment.[equipmentid]) not in (      select equipmentid     downperiod     update null ))); 

the 2nd excludes not before in. confusion comes fact query posted above not return results if equipmentid field has @ least 1 null value in downperiod table.

it works fine if fields filled, , inverse query list works. makes me think there's issue null value.

now field should never null wanted know if still work in unlikely event null did occur.

thank in advanced!

try joins:

select equipment.title equipment inner join downperiod on equipment.equipmentid = downperiod.equipmentid downperiod.update null 

and

select equipment.title equipment inner join downperiod on equipment.equipmentid = downperiod.equipmentid downperiod.update not null 

see if change in syntax fixes issue.

not should work, believe faster practise using in() not in() methods (might wrong on that, looks nicer read). adds ability change "is not null" criteria same in->not in


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -