. .
TableA TableMatched, , , TableMatched A. TableMatchedDomain.
TableMatched , , :
create view TableMatchedView
select a.ID,
d.Number,
m.OtherValues
from TableA a
join TableMatchedDomain d
left join TableMatched m on m.ID = a.ID and m.Number = d.Number
, . TableMatched , , OtherValues null. TableMatched , , . TableMatchedDomain, . TableMatchedDomain, . , , .
The reason I formulated this was because I felt that setting invariance in the row configuration in TableMatched was too fragile and, even worse, leading to redundancy. So I removed the restriction from the row groups (in TableMatched) and instead made the entire contents of another table (TableMatchedDomain) determining the correct data form.
source
share