is it wrong if we use this sql statement
Code:
SELECT gender, sum(numVisits) AS TotalPagesView FROM members m, accessLog al WHERE m.id =al.memberId GROUP BY m.gender;
instead of what the book tells us to write :
Code:
SELECT m.gender, sum(al.numVisits) AS TotalPagesView FROM members m, accessLog al WHERE m.id =al.memberId GROUP BY m.gender;
and why if anybody know the answer thank you