Question: there is a date diff error SELECT MemberID, Name, Email, PhoneNumber, LatestPaymentDate, DATEDIFF ( day , LatestPaymentDate, ' 2 0 1 8 - 0 2

there is a date diff error
SELECT
MemberID,
Name,
Email,
PhoneNumber,
LatestPaymentDate,
DATEDIFF(day, LatestPaymentDate, '2018-02-07') AS DaysUntilExpiration
FROM
member_fee_payment
WHERE
LatestPaymentDate >='2018-02-07'
AND LatestPaymentDate DATEADD(year,1,'2018-02-07')
GROUP BY
MemberID,
Name,
Email,
PhoneNumber,
LatestPaymentDate;
help modify code to pull results for same group by columns
show current active members
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 72018.
 there is a date diff error SELECT MemberID, Name, Email, PhoneNumber,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To address the error and modify the SQL code to pull results for current active members without hard... View full answer

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!