I am having a problem whose solution I can't seem to figure out at the moment. Say I have a table
CREATE TABLE #Test
(
     SomeValue1 INT,
     SomeValue2 INT
)
Now, I have two other tables, say TableA and  TableB, in which TableB inherits from TableA by sharing its primary key. I want to insert SomeValue1 into TableA and SomeValue2 into TableB, but in a way such that when you join TableA and TableB by their primary key you get #Test, but I can't figure out how to do it. Can anyone please help me?