2
Đếm dữ liệu bằng nhiều phạm vi ngày
Có lẽ điều này đã được hỏi trước đây, nhưng tôi không thể tìm ra nó. Tôi có một phone_clicksbảng (sql fiddle http://sqlfiddle.com/#!15/855e0/1 ) CREATE TABLE phone_clicks ( id integer NOT NULL, date date NOT NULL, industry_id integer NOT NULL, clicks integer DEFAULT 0 NOT NULL ); insert into phone_clicks(id, …
14
postgresql