Create a new hstream view with the given name. An exception will be thrown if a view or stream with the same name already exists.
CREATE VIEW view_name AS select_query;
view_nameis a valid identifier.
select_queryis a valid
SELECT(Stream) query. For more information, see
SELECTsection. It has to contains at least one aggregate function and a
CREATE VIEW foo AS SELECT a, SUM(a), COUNT(*) FROM bar GROUP BY b EMIT CHANGES;