File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
CREATE TABLE cities (
24
24
name text,
25
25
population float8,
26
- altitude int -- (in ft)
26
+ elevation int -- (in ft)
27
27
);
28
28
29
29
CREATE TABLE capitals (
@@ -42,17 +42,17 @@ SELECT * FROM cities;
42
42
SELECT * FROM capitals;
43
43
44
44
-- You can find all cities, including capitals, that
45
- -- are located at an altitude of 500 ft or higher by:
45
+ -- are located at an elevation of 500 ft or higher by:
46
46
47
- SELECT c.name, c.altitude
47
+ SELECT c.name, c.elevation
48
48
FROM cities c
49
- WHERE c.altitude > 500;
49
+ WHERE c.elevation > 500;
50
50
51
51
-- To scan rows of the parent table only, use ONLY:
52
52
53
- SELECT name, altitude
53
+ SELECT name, elevation
54
54
FROM ONLY cities
55
- WHERE altitude > 500;
55
+ WHERE elevation > 500;
56
56
57
57
58
58
-- clean up (you must remove the children first)
You can’t perform that action at this time.
0 commit comments