select d.ID,d.Name,d.salary,da.Name,da.salary from Data as d left join Data as da on d.ID = da.id where d.Name in ('ram','ravi') and da.Name = 'sdfsdf'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)