Creating View from Related Child Tables
问题 I have the following general table structure (forgive the United States-centric carmakers in my contrived example): CREATE TABLE Car ( [Id] int PRIMARY KEY ) CREATE TABLE Ford ( [FordId] int PRIMARY KEY, --also a foreign key on Car [Model] nvarchar(max) ) CREATE TABLE Chevy ( [ChevyId] int PRIMARY KEY, --also a foreign key on Car [Model] nvarchar(max) ) I am wanting to create a view on top of these tables so that I can retrieve all Fords and Chevys and just have a generated column in the view