[DOCS] Should the cartesian product be more easily seen? - Mailing list pgsql-docs

From mnikulyak@gmail.com
Subject [DOCS] Should the cartesian product be more easily seen?
Date
Msg-id 20170307205721.25051.30046@wrigleys.postgresql.org
Whole thread Raw
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/static/tutorial-join.html
Description:

In section "Chapter 2. The SQL Language", there are two "Exercises" for the
learner to try to do.

My note is about the first one. There, the correct answer is the cartesian
product of the sets of all records from the two joined tables.

Now, if the reader knows the solution then all is well and s/he is not
surprised with the output.

Should they have guessed wrong, however, then, chances are, they will not be
able to figure out the "cartesian product" idea from the output they will
see. The reason is that the 'cities' table contains only one record in it.

If there were at least two records in that table then the solving approach
would have been much more expressive. - IMHO...

Thanks for your great job!!
Best regards.

pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: [DOCS] EXCLUDE logical wording: "not all" should be "none"
Next
From: aquibmir@gmail.com
Date:
Subject: [DOCS] Examples with columns and tables