SQL Server 2005 STD SP1:
I want to add a field from third table [TABLE3].
TABLE3 can link to TABLE2 via a key Field [Field2].
I'm not sure how to correctly add a TABLE3 to the existing, and working properly joined TABLE1 and TABLE2 script.
Can this be done, and if so, what is the proper scripting, or what will the below script end up looking like?
Here is the existing view with (2) tables joined.
++++++++++++++++++++++++++
create view VIEW_TEST as
select a.field1,a.field2,a.field3,b.field1,b.field2
from TABLE1 a left outer join TABLE2 b on a.field1=b.field1
++++++++++++++++++++++++++
Thanks,
Andrew
I want to add a field from third table [TABLE3].
TABLE3 can link to TABLE2 via a key Field [Field2].
I'm not sure how to correctly add a TABLE3 to the existing, and working properly joined TABLE1 and TABLE2 script.
Can this be done, and if so, what is the proper scripting, or what will the below script end up looking like?
Here is the existing view with (2) tables joined.
++++++++++++++++++++++++++
create view VIEW_TEST as
select a.field1,a.field2,a.field3,b.field1,b.field2
from TABLE1 a left outer join TABLE2 b on a.field1=b.field1
++++++++++++++++++++++++++
Thanks,
Andrew