projection with nulls
From: paul c <toledobysea_at_ac.ooyah>
Date: Sun, 16 Mar 2008 17:34:14 GMT
Message-ID: <qScDj.90937$pM4.36949_at_pd7urf1no>
(Just my stab at moving from the recent topics towards more basic questions, sorry if there's not much newspeak in it):
Date: Sun, 16 Mar 2008 17:34:14 GMT
Message-ID: <qScDj.90937$pM4.36949_at_pd7urf1no>
(Just my stab at moving from the recent topics towards more basic questions, sorry if there's not much newspeak in it):
Say you have R with (S)upplier, (P)art, (Q)uantity:
R:
S P
- -
a 2
b _
with predicate: Supplier S supplies Part P. The underscore in the second 'row' stands for 'NULL', ie., SQL's null.
For argument's sake, say the first tuple means that 'if Supplier a carries any parts, it carries Part 2' and the second tuple might mean that 'if Supplier b carries any part, we do not know what that part's number is'. Not everybody might agree that this meaning is essentially
the same as the predicate given but as long as the meaning or predicate is the same for all tuples, picking one or the other shouldn't matter to the dbms.