/ Published in: SQL
Counts the total amout of nodeviews between now and a year ago (the last 31536000 seconds).
Expand |
Embed | Plain Text
SELECT SUM(count.totalcount) FROM node_counter count LEFT JOIN node n ON n.nid = count.nid WHERE n.created > (UNIX_TIMESTAMP(NOW())-31536000);
You need to login to post a comment.
