select year, batch from tb1 left join tb2 on tb1.rollno = tb2.rollno;
SELECT year, batch FROM tb1 INNER JOIN tb2 ON tb1.rollno=tb2.rollno
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)