PostgreSQL - Joins in PostgreSQL
Consider the tables:
id | name
1 | John
2 | Mary
id | title
1 | Book A
2 | Book B
3 | Book C
What will be the output of:
Authors:id | name
1 | John
2 | Mary
Books:id | title
1 | Book A
2 | Book B
3 | Book C
What will be the output of:
SELECT name, title FROM Authors CROSS JOIN Books WHERE Authors.id = 2 ORDER BY name, title;?