Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Payment Table: This table contains all the payment records on a date and member level. This is for members who make a payment on each

image text in transcribedimage text in transcribed

Payment Table: This table contains all the payment records on a date and member level. This is for members who make a payment on each day. A sample data looks like this Date 1/3 1/4 memberID S33.9 S19.3 $29.1 User Table: This table contains all the active records on a date and member level. This is for member who visit linkedin.com site on each day. A sample data looks like this: Date memberID 1/3 1/3 1/4 1/4 1/5 Date Table: this table contains the date information Date 1/2 1/3 1/4 1/5 1/6 Please write a query for the following cases: 1. Total Revenue & Payers: Create a table to display total revenue& number of buyers on each day Date buyers 2. Top payers: Create a table to display the top one payer on each day Date memberID 3. A distribution of # days active within a week: Create a table to show how many members are active for l day, 2days, 3days 7days during 31 . #Days Active | Count 4 4. Active but not payers: Create a table to display people who were active but did not pay on each day Date memberID

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

=+22.13. Suppose that of is a semiring containing 2.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago