Question: j . Members whose membership will expire within 3 0 days from Feb 7 , 2 0 1 8 Explanation: - To find the already

j. Members whose membership will expire within 30 days from Feb 7,2018
Explanation:- To find the already expired members we have to check the date of the last paid membership fees and if it is less than 7th February 2018 and it has not been renewed then the membership has expired. So we have to select both the member and member_fee_payment table and check the corresponding membership with their unique member id.
-> The SQL query to show members whose membership will expire within 30 days of February 7th,2018 is as followings:-
SELECT * FROM member,member_fee_payment where member.member_ID == member_fee_payment.id and DATEDIFF(day,Date_Paid,'2018-02-07')=30 So basically group by Member ID
Name (Last, first)
email
phone # (areacode-xxx-xxxx)
Latest payment date
Number of days to expiration, and also respectfully only use the date '2018-02-07'
 j. Members whose membership will expire within 30 days from Feb

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!