CBSE Class 12 Computer Science SQL Questions
CBSE Class 12 Computer Science SQL Questions
Questions
Solution:
Solution:
An INNER JOIN is a type of join that returns only the rows with
data in both the joined tables. It is the default join type of the
SQL query. For example, let's say we have two tables: Table1
and Table2. If we perform an INNER JOIN on these two tables
like this:
A LEFT JOIN on the other hand is a type of join that returns all
the data from the left table, even if there is no match in the
right table. For example, if we perform a LEFT JOIN like this: