PostgreSQL - Joins in PostgreSQL
Given two tables:
id | color
1 | Red
2 | Blue
id | shape
1 | Circle
2 | Square
3 | Triangle
What will be the output of the query:
Colors:id | color
1 | Red
2 | Blue
Shapes:id | shape
1 | Circle
2 | Square
3 | Triangle
What will be the output of the query:
SELECT color, shape FROM Colors CROSS JOIN Shapes ORDER BY color, shape;?