select e1.id,e1.name,e2.name as Name2 from tableName e1 inner join tableName e2 on e1.subid=e2.id
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)