SELECT *, DATEDIFF(CURDATE(),tarikhmohon) AS hari
FROM mohon a
INNER JOIN tblstatus_tak_lengkap b on a.noMyKid=b.nomykid
WHERE noMyKid=130902100437
I have tried that SQL but I got an error.
#1052 - Column 'noMyKid' in where clause is ambiguous.
I can't find the problem.
Column
noMyKidis present is both tables. You should tell the server on what table the column you want to filter, egor
Whatever you use, it doesn't matter since you are using
INNER JOIN.