Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which configuration is missing
Message
From
06/06/2008 14:12:13
Moacyr Zalcman
Independent Consultant
São Paulo, Brazil
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Which configuration is missing
Miscellaneous
Thread ID:
01322144
Message ID:
01322144
Views:
79
Hi, everybody

Supose this two queries:

select * from chequescaixa where id='888516'
Returns one Row

[select * from caixamovimento where docid='888516'] &&[docid] refers to [id] in chequescaixa table
Returns Nothing

[select * from chequescaixa where id not in(select docid from caixamovimento)]
Returns Nothing

But

[select * from chequescaixa where id not in(select docid from caixamovimento where docID IS NOT NULL)]
Returns one Row

I supposed the query

[select * from chequescaixa where id not in(select docid from caixamovimento)]

should return the correct value.Is there anything I'm missing?

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform