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 days from Feb
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 th February and it has not been renewed then the membership has expired. So we have to select both the member and memberfeepayment table and check the corresponding membership with their unique member id
The SQL query to show members whose membership will expire within days of February th is as followings:
SELECT FROM member,memberfeepayment where member.memberID memberfeepayment.id and DATEDIFFdayDatePaid, So basically group by Member ID
Name Last first
email
phone # areacodexxxxxxx
Latest payment date
Number of days to expiration, and also respectfully only use the date
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
