SQL

temporal-relationship

SQL

select * from book where create_date >= '2007/12/05 10:00:00' AND create_date <= '2008/05/12 10:00:00';

temporal-relationship

SQL

select * from book where now() - interval '3 month' <= create_date;

spatial-relationship

SQL

SELECT kb_user.pt <-> hot_spring.pt as distance, hot_spring.name as spring, place.name as place FROM kb_user, hot_spring, place WHERE kb_user.name = 'shokai' and place.area ~ hot_spring.pt ORDER by distance asc;

授業メモ

SQL

SELECT country.cname, country.population, river.rname, river.len, mount.mname, mount.elevation FROM country, river, mount, mhold, rhold WHERE country.population > 50000 AND mount.elevation > 4000 AND river.len > 1000 AND country.cname = mh…

PostgreSQLならってる

SQL

joinわかった! select rhold.cname, rhold.rname,len from rhold,river where river.len > 700 AND river.rname = rhold.rname;

PostgreSQL入れる

授業でもらったビルドを入れたらクライアントツールとか全部はいった。 universal build 8.3.1と書いてあったdmcに。