Skip to content
Advertisement

Data Joining of two Tables MS Access SQL

I have two tables named – 1) Students 2) Classes. ClassID is Primary Key of Classes table and Foreign Key of Students Table.

I want to access one row from the Students table having specfic RollNo (This RollNo is given by user input) and all rows from Classes Table.

Students Table is given as:-

RollNo is Primary Key. And Last Field of Students is Picture attachment.

Classes Table is given as :-

I want the output like this

Output

What is the query to get data like this?

Advertisement

Answer

You need a left join of Classes to Students:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement