563 views
0 votes
0 votes
In sql relations can contain null values,and comparisons with null values are unknown. suppose all comparisons with a null value are treated as false. which of the following pairs is not equivalent ?                                      a.x=5,not (not  (x=5))                                        b.x=5,x>4 and x <6,where x is an integer       c.x <5,not  (x=5)                                                   d.NOT

1 Answer

1 votes
1 votes
Answer: C

As if x is considered NULL, and any comparison with NULL yields False.

Then, x <5 gives FALSE

not (x=5) --> not (False) --> True.

So They are not equivalent.

Related questions

57 votes
57 votes
4 answers
4
Kathleen asked Sep 14, 2014
16,398 views
Given relations r(w, x) and s(y, z) the result ofselect distinct w, x from r, s is guaranteed to be same as r, provided.r has no duplicates and s is non-emptyr and s have...