Solving problems to SQLServer in query columns