I have two tables
TableA and TableB
TableA has Id,studentname,schoolname
TableB has Id,teachername,school name
TableB has Id,teachername,school name
i need to select from theese two tables with 4 coloumns in datatable-> ID, Name,schoolname,type
Id must contain both tables id,
Name must contain teachename and studentname,
school name must contain schoolname from both table..
type contain 1 for student and 2 for teacher
How can i make the procedure..??????


Nisha RegilRank #1,956 · 748 reputationPosted Aug 28, 2020, 1:26 AM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Aug 28, 2020, 12:25 AM EDT
Ajay GohilRank #2,370 · 599 reputationPosted Aug 28, 2020, 1:00 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 28, 2020, 8:30 PM EDT