This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT n.title, SUM(w.count) as total | |
FROM project_usage_week_release w | |
INNER JOIN field_data_field_release_project r ON w.nid = r.entity_id | |
INNER JOIN node n ON n.nid = r.field_release_project_target_id | |
INNER JOIN | |
field_data_field_release_version v ON v.entity_id = r.entity_id | |
WHERE LEFT(v.field_release_version_value, 3) = '7.x' | |
AND FROM_UNIXTIME(w.timestamp) BETWEEN CURDATE()-INTERVAL 2 WEEK AND CURDATE() | |
GROUP BY n.title | |
ORDER BY total DESC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[hook_menu] => 6744 | |
[hook_uninstall] => 4742 | |
[hook_perm(ission)] => 4012 | |
[hook_install] => 3751 | |
[hook_theme] => 3525 | |
[hook_schema] => 3003 | |
[hook_help] => 2465 | |
[hook_form_alter] => 2273 |