859 views
1 votes
1 votes

Answer should be $0$ row,right?

2 Answers

1 votes
1 votes
yes Given answer is Wrong ..it should return 0 rows..

In database the NULL is Undefined or Unknown .. so one Null can never be equal to another NULL ..

So as there is no matching .. it will simply return 0 rows...Definately it will compare NULL with NULL ...

but as they are unknown we can say nothing ...as a result compiler will simply return 0 rows
0 votes
0 votes
comparing null with null gives you error in mySql.

Related questions

4 votes
4 votes
0 answers
2
GO Classes asked Feb 5
310 views
Consider the following schema (primary keys are underlined):Which of the following queries returns the department numbers of those departments for which there are no cour...
0 votes
0 votes
0 answers
4
GO Classes asked Feb 4
128 views
DBMS question: One SQL query is given. Based on the query which data structure can be used involving hashing, B+ tree, etc?