diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-09-04 08:45:57 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-09-04 08:45:57 +0200 |
commit | 49d7165117893405ae9b5b8d8e7877acff33c0e7 (patch) | |
tree | 7b9796b80f4a05bfb326431bcf7fced2d236612a /src/tutorial | |
parent | 79fd620b20b7721c2b591ef495be79b6347286c1 (diff) | |
download | postgresql-49d7165117893405ae9b5b8d8e7877acff33c0e7.tar.gz postgresql-49d7165117893405ae9b5b8d8e7877acff33c0e7.zip |
doc: Change table alias names to lower case in tutorial chapter
This is needlessly different from our usual style otherwise.
Author: Jürgen Purtz <juergen@purtz.de>
Discussion: https://www.postgresql.org/message-id/flat/158996922318.7035.10603922579567326239@wrigleys.postgresql.org
Diffstat (limited to 'src/tutorial')
-rw-r--r-- | src/tutorial/basics.source | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tutorial/basics.source b/src/tutorial/basics.source index 9dbd75eb154..fe1cdfde2a8 100644 --- a/src/tutorial/basics.source +++ b/src/tutorial/basics.source @@ -126,13 +126,13 @@ SELECT * FROM weather LEFT OUTER JOIN cities ON (weather.city = cities.name); -- Suppose we want to find all the records that are in the temperature range --- of other records. W1 and W2 are aliases for weather. +-- of other records. w1 and w2 are aliases for weather. -SELECT W1.city, W1.temp_lo, W1.temp_hi, - W2.city, W2.temp_lo, W2.temp_hi -FROM weather W1, weather W2 -WHERE W1.temp_lo < W2.temp_lo - and W1.temp_hi > W2.temp_hi; +SELECT w1.city, w1.temp_lo, w1.temp_hi, + w2.city, w2.temp_lo, w2.temp_hi +FROM weather w1, weather w2 +WHERE w1.temp_lo < w2.temp_lo + and w1.temp_hi > w2.temp_hi; ----------------------------- |