Design a table a with the user_id user iduser_name user name web_id user's website idcreatetime User Creation Time requirement: count the number of new users per month for each website id selectcount (*), to_char (. createtime, yyyy-mm),. web_idfrom table awherea. createtimeisnotnullgr
Design a table a with the user_id user id user_name user name web_id user website id createtime User Creation Time requirement: count the number of new users per month for each website id select count (*), to_char (. createtime, yyyy-mm),. web_id from Table a where. createtime is not null gr
Design a table. The structure of Table a is
User_id user ID
User_name User Name
Web_id website id of the user
Createtime User Creation Time
Requirement: count the number of new users per month for each website id
Select count (*), to_char (a. createtime, 'yyyy-mm'), a. web_id
From table a where a. createtime is not null
Group by to_char (a. createtime, 'yyyy-mm'),/* calculate by creation time */
A. web_id/* statistics by website */
Order by.Web_id, To_char (a. createtime, 'yyyy-mm') desc;