Join q1
Join q1
Joins in SQL are used to combine rows from two or more tables based on a related column.
They help retrieve data from multiple tables in a meaningful way.
Types of Joins:
A Cross Join in SQL returns the Cartesian product of two tables, meaning each row from
the first table is combined with every row from the second table. It does not require a
common column between the tables.
Syntax:
Example:
If table1 has 3 rows and table2 has 4 rows, the result will contain 3 × 4 = 12 rows.