Select cast(seatno as varchar) + ',' + Studentname from StudentTable s inner join MatrixTable m on m.Studentid = s.studentID
castSeatnno to varchar That should work Select cast(seatno as varchar(10)) + ',' + Studentname from StudentTable s inner join MatrixTable m on m.Studentid = s.studentID
select convert(varchar, seatno) + ',' + studentname from student s join matrix m on s.studentid = m.studentid
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)