show databases
name: databases
_internal
Testing
slamgmt
mydbdemo
food_data
use food_data
Using database food_data
show measurements
name: measurements
name
downsampled_orders
orderscq
ordersnew
select * from orderscq
name: orderscq
time phone websit
cq_15m CREATE CONTINUOUS QUERY cq_15m ON food_data BEGIN SELECT mean(website) AS mean_website, mean(phone) AS mean_phone INTO food_data.a_year.downsampled_order
s FROM food_data.autogen.orderscq GROUP BY time(15m) END
cq_10m CREATE CONTINUOUS QUERY cq_10m ON food_data BEGIN SELECT mean(website) AS mean_website, mean(phone) AS mean_phone INTO food_data.a_year.downsampled_order
s FROM food_data.autogen.ordersnew GROUP BY time(10m) END
Select * from food_data.a_year.downsampled_orders
name: downsampled_orders
time mean_website