duchovnick
Programmer
Hi,
My table contains rows where husband is located in a separate row from as well as wife.
I'd like to create a query of which the results will be husband and wife at one row.
Common column is "phone".
I write:
and i get the following errors:
My table contains rows where husband is located in a separate row from as well as wife.
I'd like to create a query of which the results will be husband and wife at one row.
Common column is "phone".
I write:
Code:
select
a.name ,
b.name,
a.phone
from
table1 as a left join table2 as b
on
a.phone=b.phone
Will anyone help me please with that? How do i get rid of that error message ?Server: Msg 207, Level 16, State 3, Line 1
Invalid column name 'phone'.
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'phone'.
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'name'.
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'name'.