Foreign Key and Unique Key can have null values right .Suppose FK in Table1 references UK in Table2, can we compare null = null , or such comaprisons will be skipped? Unique key can take 1 NULL value, hence the question.
Adding the example as below
PassportNumber is ForeignKey in PersonTable and Unique Key in Passenger table. If we join the below tables based on PassportNumber will the record come in join or it will be skipped.
Person
Id Name passportNumber
1 John NULL
2 Anil J01234567
Passenger
Id VehicleNumber passportNumber
1 US 7C 0987 NULL
2 UK 8C 0698 J01234567