SELECT date_upd::date AS update_date, name_store, COUNT(name) AS name_cntFROM products_data_allWHERE date_upd::date = '2019-06-03' AND units = 'г' AND weight::real > 900GROUP BY update_date, name_storeHAVING COUNT(name) < 10;
123456789101112131415