我正在研究以下重要观点:
CREATE MATERIALIZED VIEW ShipStats AS
SELECT country, AVG(displacement), COUNT(*)
FROM classes, ships
WHERE classes.class = ships.name
GROUP BY country;
并试图说明选任考试委员会的部分工作。
我理解选定国家。 而AVG(安置)是流离失所一栏的平均数。 但是,COUNT(*)做些什么。 而AVG的流离失所与单一船舶的统计有关?
Relations:
Classes(class, type, country, numGuns, bore, displacement)
Ships(name, class, launched)