Use views in tpch07 to avoid implicit cast errors.