I have normalized tables in a database and to denormalize it, I created a view out of two tables. When I tried to create a clustered index on the view, it wouldn\'t let me,
There is a "workaround" here that involves check for NULL in the join and having a NULL representation value in the table
NULL
NULL value
INSERT INTO Father (Father_id, Father_name) values(-255,'No father')
The join
JOIN [dbo].[son] s on isnull(s.father_id, -255) = f.father_id