As per my understanding below could be the implementation to achieve this
suppose you have two table as per below
Table1 : Student
RollNumber | Name |
1 | AAA |
2 | BBB |
3 | CCC |
Table2 : Subject
RollNumber | English | Maths | History |
1 | 50 | 60 | 70 |
2 | 40 | 45 | 50 |
3 | 35 | 65 | 38 |
then you query will be
SELECT S.Rollnumber,S.Name,Sub.English,Sub.Maths,Sub.History
FROM Student S inner join Subject Sub On S.RollNumber=Sub.RollNumber
Hope this helps if yes then accept my answer and vote as well otherwise revert back with your queries.
--Rahul D.