doc: Use tags consistently in the tutorial chapter
authorPeter Eisentraut
Fri, 4 Sep 2020 06:19:20 +0000 (08:19 +0200)
committerPeter Eisentraut
Fri, 4 Sep 2020 06:19:20 +0000 (08:19 +0200)
Make more consistent use of  and .

Author: Jürgen Purtz 
Discussion: https://www.postgresql.org/message-id/flat/158996922318.7035.10603922579567326239@wrigleys.postgresql.org

doc/src/sgml/query.sgml

index c0889743c4c48c0fc8a1abfd8b73655a94ad2216..bdb455f300827808945da2d82847e2a1301fbc0c 100644 (file)
@@ -564,14 +564,16 @@ SELECT *
 
 SELECT *
     FROM weather LEFT OUTER JOIN cities ON (weather.city = cities.name);
+
 
+
      city      | temp_lo | temp_hi | prcp |    date    |     name      | location
 ---------------+---------+---------+------+------------+---------------+-----------
  Hayward       |      37 |      54 |      | 1994-11-29 |               |
  San Francisco |      46 |      50 | 0.25 | 1994-11-27 | San Francisco | (-194,53)
  San Francisco |      43 |      57 |    0 | 1994-11-29 | San Francisco | (-194,53)
 (3 rows)
-programlisting>
+screen>
 
     This query is called a left outer
     join because the table mentioned on the left of the
@@ -612,13 +614,15 @@ SELECT W1.city, W1.temp_lo AS low, W1.temp_hi AS high,
     FROM weather W1, weather W2
     WHERE W1.temp_lo < W2.temp_lo
     AND W1.temp_hi > W2.temp_hi;
+
 
+
      city      | low | high |     city      | low | high
 ---------------+-----+------+---------------+-----+------
  San Francisco |  43 |   57 | San Francisco |  46 |   50
  Hayward       |  37 |   54 | San Francisco |  46 |   50
 (2 rows)
-programlisting>
+screen>
 
     Here we have relabeled the weather table as W1 and
     W2 to be able to distinguish the left and right side