Coalesce in sql => http://compskeepcastdis.nnmcloud.ru/d?s=YToyOntzOjc6InJlZmVyZXIiO3M6MjE6Imh0dHA6Ly9iaXRiaW4uaXQyX2RsLyI7czozOiJrZXkiO3M6MTU6IkNvYWxlc2NlIGluIHNxbCI7fQ== If it has, then append a comma, then append the city. So you get the output 'abc'. This section and the next section describe a couple of interesting examples that are affected by this behavior. If the expression is the same as search, result is returned. Could someone look at it for me and give me some feedback? It instructs the Database to return an alternative value n2 if the input value n1 is NaN not a number. To be honest, I think this is often an edge case, but the sentiment seems to proliferate into all discussions that involve the two functions. After the delete transaction committed, there were no more rows to read; hence the sum was computed as 42. For example, consider a case where the subquery is a correlated one appearing in some outer query against another table. Note that this differentiation exists only in sub queries, while in normal queries both behave similarly. For example: Try the link below 1. SQL Server: COALESCE Function - In actuality, I have found it to be one of the most useful functions with the least documentation. Return Types Returns the data type of expression with the highest data type precedence. Though these two functions look similar, there are certain differences. Now, rewrite the query as follows: See the execution plan. Note that this differentiation exists only in sub queries, while in normal queries both behave similarly. Means: Both the statements behave similarly with no performance differentiation. Wendelius 31-Jul-14 18:50 31-Jul-14 18:50 Hi, You have a good start for a tip but there are few things that should be corrected and added. This should be clearly stated. This may be very important to the reader. It would be nice if you would use code blocks instead of pictures. This way the readers can coalesce in sql the code and have a try with it. Also the tip would benefit from additional explanations etc. · Hi, I hope everything is fine with you; however, could you you please shortout the key points that you achieved in this post. But now what' going on the the around. Marufuzzaman · No, but I requested with honor that what are the key points that you achieved in this post. For example: Try the link below 1. Marufuzzaman · Hi, When i thought to write articles on code project,the first idea that came to my mind is to write about the articles which i studied earlier and which i found to be interesting and might be useful for the followers of Code Project. So i started with this article. I will take your suggestions into consideration and write the next articles accordingly. Thanks a lot for the suggestions do visit my articles regularly and post your comments and suggestions Thank coalesce in sql.