I have 1 table (client_matters) and 1 view (vw_cli_comm_details) that I have joined together on a column named matter_code.
In vw_cli_comm_details the comm_no column contains a mixture of phone numbers, email addresses, fax numbers etc.
I want my query to return all entries in the client_matters table, but only return comm_no from vw_cli_comm_details if it contains an @.
Basically I want to see the comm_no only if we have an email address for the corresponding client in the client_matters table/view, otherwise I want this column to be blank for that particular row.
What is the syntax I should be using to do this?
Thanks in advance
Ali
In vw_cli_comm_details the comm_no column contains a mixture of phone numbers, email addresses, fax numbers etc.
I want my query to return all entries in the client_matters table, but only return comm_no from vw_cli_comm_details if it contains an @.
Basically I want to see the comm_no only if we have an email address for the corresponding client in the client_matters table/view, otherwise I want this column to be blank for that particular row.
What is the syntax I should be using to do this?
Thanks in advance
Ali