where Surname is not null
SELECT QUOTENAME(Surname), QUOTENAME(Name) FROM [TableName]
where Surname <> ''