
Migrating to Sybase Adaptive Server Enterprise 11.5 5-9
Adaptive Server Enterprise 11.5 If Your Current Version is 4.x
not in
SQL Server 4.x returned “true” if a subquery using
not in returned
results contained no matching values but did contain a NULL.
Though NULL usually means “unknown”, ANSI semantics define
NULL as “false”. Correlated subqueries using
not in now return
“false” when the subquery returns NULL.
This change allows you to get correct results from subqueries using
not in without writing extra code.
This example shows the difference in processing due to this change:
select pub_id
from publishers
where $100.00 not in
(select price from titles
where titles.pub_id=
publishers.pub_id)
Release 4.x Results Release 10.x and 11.x Results
New Age Books
New Age Books
New Age Books
New Age Books
New Age Books
Binnet & Hardley
Binnet & Hardley
Binnet & Hardley
Binnet & Hardley
Binnet & Hardley
Binnet & Hardley
Binnet & Hardley
Algodata Infosystems
Algodata Infosystems
Algodata Infosystems
Algodata Infosystems
Algodata Infosystems
Algodata Infosystems
New Age Books
Binnet & Hardley
Algodata Infosystems
Commentaires sur ces manuels