Hi All
can you create a foreign key to an existing table that works the same way has having 'Left Outer Join' in a Select statement. So that all rows in table 1 are displayed, even if they don't have a valid key to table2??????????????
TABLE1
TAB1KEY int
TAB2KEY int
CONTENT char
TABLE2
TAB2KEY int
COLOUR char
SELECT TABLE1.TAB1KEY, TABLE1.TAB2KEY, TABLE1.CONTENT, TABLE2.TAB2Key, TABLE2.COLOUR
FROM {TABLE1 TABLE1 LEFT OUTER JOIN TABLE2 TABLE2 ON TABLE1.tab2key = TABLE2.Tab2Key}
Many Thanks
can you create a foreign key to an existing table that works the same way has having 'Left Outer Join' in a Select statement. So that all rows in table 1 are displayed, even if they don't have a valid key to table2??????????????
TABLE1
TAB1KEY int
TAB2KEY int
CONTENT char
TABLE2
TAB2KEY int
COLOUR char
SELECT TABLE1.TAB1KEY, TABLE1.TAB2KEY, TABLE1.CONTENT, TABLE2.TAB2Key, TABLE2.COLOUR
FROM {TABLE1 TABLE1 LEFT OUTER JOIN TABLE2 TABLE2 ON TABLE1.tab2key = TABLE2.Tab2Key}
Many Thanks