Question: Q 1 ) write postgresql code In the last 7 days how many users made more than one purchase in a day ( per day

Q1) write postgresql code
In the last 7 days how many users made more than one purchase in a day (per day)? What is the total daily revenue from such users? Please arrange the output by date
The output will have 7 rows and 3 columns: Date, total revenue, unique users
Table Name: purchase info
\table[[User_id,Action,date purchase_type,dollar_amount,purchase_id],[abc,purchase_complete,2020-06-10 Gold,1.00,xt246],[abc,purchase_complete,2020-06-11 Gold,1.00,xy239]]
 Q1) write postgresql code In the last 7 days how many

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!