Question: Can you write me a SQL query for the following: Note for questions a to c Membership starts on the day when membership fee payment

Can you write me a SQL query for the following:

Note for questions a to c

  • Membership starts on the day when membership fee payment is received and is good for one year.
  • Your SQL must not use any hardcode date except the one provided in the question, Feb 7 2018.

Member ID

Name (Last, first)

email

phone # (areacode-xxx-xxxx)

Latest payment date

Number of days to expiration

  1. Show currently active members (exclude the expired members)
  2. Members whose membership were expired since Feb 7, 2018
  3. Members whose membership will expire within 30 days from Feb 7, 2018

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!