Hi,
I am using SQL Server 2000. Below I am coping my SQl Query it is working fine.
Select A.account, C.customerName from account A
Join customerName c on C.customerno = a.customerno
where A.account = '10001147' and C.customerName '%A'
The above query is working fine. Customer names are availabe on another table Emp column name customerName.
Here I am trying pass CustomerName instead of A.
It is not showing any values. Pls correct my below SQl
Select A.account, C.customerName from account A
Join customerName c on C.customerno = a.customerno
Join Emp E on E.customername = c.customerName
where A.account = '10001147' and C.customerName like %' + @ E.customername + '
Pls help me.
Thanks
Mure
I am using SQL Server 2000. Below I am coping my SQl Query it is working fine.
Select A.account, C.customerName from account A
Join customerName c on C.customerno = a.customerno
where A.account = '10001147' and C.customerName '%A'
The above query is working fine. Customer names are availabe on another table Emp column name customerName.
Here I am trying pass CustomerName instead of A.
It is not showing any values. Pls correct my below SQl
Select A.account, C.customerName from account A
Join customerName c on C.customerno = a.customerno
Join Emp E on E.customername = c.customerName
where A.account = '10001147' and C.customerName like %' + @ E.customername + '
Pls help me.
Thanks
Mure