Creating and using a view in PostgreSQL.