For Example
- SELECT CONCAT('Naveen',' Aggarwal')
The same can be done using + in the earlier versions
- SELECT 'Naveen'+' Aggarwal'
But there is a advantage of CONCAT function over '+' in sql server 2012
- SELECT 'Naveen'+' Aggarwal'+NULL
But the CONCAT function will ignore NULL values
- SELECT CONCAT('Naveen',' Aggarwal',NULL)
So by using CONCAT function,we need not to worry about handling NULL values.
I hope u like it.


Naveen KumarPosted Apr 19, 2015, 9:15 PM EDT
thanks Gowtham Rajamanickam
Naveen KumarPosted Apr 19, 2015, 9:14 PM EDT
thanks Nitin Tyagi
Gowtham RajamanickamTOP 100Posted Apr 18, 2015, 8:05 PM EDT
Good one
NitinPosted Apr 12, 2015, 12:23 PM EDT
nice