I have a query like this
SELECT member_Id ,
PERIOD_DIFF(
DATE_FORMAT(now(),'%Y%m'),
DATE_FORMAT(memberToMship_StartDate,'%Y%m')
) +
(
DAY(memberToMship_StartDate) < memberToMship_DueDay
) +
(
DAY(now()) > memberToMship_DueDay
) - 1
AS ExpPayments
FROM membertomships
it was giving all exp payments for all members that was fine, can i get the single exp payment for single member…..
Do i need add any join or any where condition ..
add where clause in the end of the query