Question: Explain the difference between the INNER JOIN and OUTER JOIN.Answer: INNER JOIN returns rows when there is a match in both tables, while OUTER JOIN returns all rows from one table and the matching rows from the other table, filling in the missing values with NULLs.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is SQL?
- What is a foreign key?
- Write a SQL query to update multiple rows in a table.
- What is the purpose of the SQL DISTINCT keyword?
- Write a SQL query to find the top N records from a table.