I have this query
select cus.Cust_Code as 'Customer Code',cus.Cust_Name as 'Customer Name',addr.Cadd_address as 'Address',con.Country_Name, par.Param_Descr as 'Level Risk',
case when cus.Cust_Status =0 then 'ACTIVE' else 'InActive' end as 'Customer Status' from TB_CUSTOMER cus
left join TB_CUSTOMER_ADDRESS addr on addr.Cust_Code=cus.Cust_Code
left join TB_COUNTRIES con on con.Country_Id=addr.Country_Id
left join TB_PARAMETERS par on par.Param_Code=cus.Cust_Risklevel
where par.Param_Type='RISKLEVEL'
order by cus.Cust_Code asc
It runs perfectly, it is asked to me to display the results delimited with pipes as follows
56|NIKOLAOS KARELOS|PLASTIRA 17, NEA SMIRNI|GREECE|||SOLONOS 136, ATHENS|GREECE|HIGH|ACTIVE
65|PROFILE SOFTWARE|||SIGGROU 199, NEA SMIRNI|GREECE|SHEIKH AL SAYED RD. 67, DUBAI|UNITED ARAB EMIRATES|LOW|ACTIVE
I have no idea about that, I am new to SQL, may you help me please?
Any help will be much appreciated. Thank you so much in advanced.
select cus.Cust_Code as 'Customer Code',cus.Cust_Name as 'Customer Name',addr.Cadd_address as 'Address',con.Country_Name, par.Param_Descr as 'Level Risk',
case when cus.Cust_Status =0 then 'ACTIVE' else 'InActive' end as 'Customer Status' from TB_CUSTOMER cus
left join TB_CUSTOMER_ADDRESS addr on addr.Cust_Code=cus.Cust_Code
left join TB_COUNTRIES con on con.Country_Id=addr.Country_Id
left join TB_PARAMETERS par on par.Param_Code=cus.Cust_Risklevel
where par.Param_Type='RISKLEVEL'
order by cus.Cust_Code asc
It runs perfectly, it is asked to me to display the results delimited with pipes as follows
56|NIKOLAOS KARELOS|PLASTIRA 17, NEA SMIRNI|GREECE|||SOLONOS 136, ATHENS|GREECE|HIGH|ACTIVE
65|PROFILE SOFTWARE|||SIGGROU 199, NEA SMIRNI|GREECE|SHEIKH AL SAYED RD. 67, DUBAI|UNITED ARAB EMIRATES|LOW|ACTIVE
I have no idea about that, I am new to SQL, may you help me please?
Any help will be much appreciated. Thank you so much in advanced.