When working with multiple tables in a SELECT statement, what SQL clause is used to specify how the tables are related?

  • GROUP BY
  • HAVING
  • JOIN
  • WHERE
The JOIN clause is used in SQL to combine rows from two or more tables based on a related column between them. It allows you to retrieve data from multiple tables in a single query by specifying how the tables are related. There are different types of JOINs, such as INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN, each serving different purposes in querying data from related tables.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *