Question: can you write me general SQL queries for the questions below. You can use placeholders for the table, row and column names. Members who registered

can you write me general SQL queries for the questions below. You can use placeholders for the table, row and column names.

  1. Members who registered after 2017 Jan 1. Columns and format:

Name (Last, first)

email

Date Joined (i.e., registered date)

phone # (areacode-xxx-xxxx)

Home City

  1. Student who has signed up to join AITP (have a valid registered date) but have not paid member fees (no payment exists)

Name (Last, first)

email

Date Joined (i.e., registered date)

phone # (areacode-xxx-xxxx)

Home City

  1. Members whose membership will expire within 30 days from today

Member ID

Name (Last, first)

email

phone # (areacode-xxx-xxxx)

Last time payment (i.e., Latest payment date)

Number of days to expire

Is last time payment a renew?

  1. Members whose membership will expire within 3 months from today

Member ID

Name (Last, first)

email

phone # (areacode-xxx-xxxx)

Last time payment (i.e., Latest payment date)

Number of days to expire

Is last time payment a renew?

  1. Members whose membership have already expired

Name (Last, first)

email

Date Joined (i.e., registered date)

phone # (areacode-xxx-xxxx)

Home City

  1. Members who have ordered polo shirt but have not received it

Member ID

Name (Last, first)

email

phone # (areacode-xxx-xxxx)

Shirt order date

Shirt order payment date

Shirt order payment amount

Shirt received? (show a N in resulting records)

  1. All current members
    1. Exclude the expired members
    2. Columns and format:

Member ID

Name (Last, first)

email

phone # (areacode-xxx-xxxx)

Latest payment date

Earliest payment date

Number of payments

Average payment amount

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!