concatenate two columns in sql code example
Example 1: mysql concat and use as where column
select * from table where concat_ws(' ',first_name,last_name)
like '%$search_term%';
Example 2: concat two columns in sql server
select Convert(nvarchar(50),ID)+'-'+Convert(nvarchar(50),Year) as ID_Year from tablename