


<pre>SELECT FirstName + ', ' + CASE WHEN MiddleName IS NULL THEN '' ELSE MiddleName + ', ' END + LastName FROM YourTable</pre>I wrapped the MiddleName column within a CASE statement so that if it's NULL it leaves the middle name out. If you want the blank field if the MiddleName is NULL then you'll want something like this.
<pre>SELECT FirstName + ', ' + ISNULL(MiddleName) + ', ' + LastName FROM YourTable</pre>Tiny modification use an As to give column name-
<pre>SELECT (FirstName + ', ' + ISNULL(MiddleName) + ', ' + LastName) as FullName FROM YourTable</pre>


Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.