one: how to assign different priorities. two:
===========
1, createdb
2, dropdb
3, psql \h (help) \q (quit)
one: how to assign different priorities. two:
===========
1, createdb
2, dropdb
3, psql \h (help) \q (quit)
CREATE TABLE weather ();
DROP TABLE weather;
INSERT INTO weather VALUES ();
INSERT INTO weather () VALUES ();
SELECT * FROM weather;
SELECT city, temp_lo, temp_hi, prcp, date FROM weather;
SELECT city, (temp_hi+temp_lo)/2 AS temp_avg, date FROM weather;
SELECT * FROM weather WHERE city = 'San Francisco' AND prcp > 0.0;
SELECT * FROM weather ORDER BY city;
SELECT DISTINCT city FROM weather;