I have two tables table1 and table2. Both tables has multiple columns.
table1: serialno , recordno....
table2: recodno,issueid....
I want to retrive all the rows from table1,
issueid from table2 with condition of table1.recordno=table2.recordno
recordno from table1 is primary key. I am using MS-Access database.
You can use any of the following join:
JOIN: Return rows when there is at least one match in both tables,
LEFT JOIN: Return all rows from the left table, even if there are no matches in the right table,
RIGHT JOIN: Return all rows from the right table, even if there are no matches in the left table,
FULL JOIN: Return rows when there is a match in one of the tables
In your case: