Any Mysql guru to help me please to retrieve a sum of meta_value
-
Hi,
I search to create a $wpdb query for a sum of meta_value where each post have this meta_key->meta_value pair. But I need to have in the final result the sum of this meta_value where the total is filtered by posts-categories. And the result is displaying in administration.
The result must be something like
cat_name1 -> sum (meta_value(s))
cat_name2 -> sum (meta_value(s))
cat_name3 -> sum (meta_value(s))
…I think INNER JOIN is the solution but I’m not an expert with mysql, INNER JOIN,… to create this request.
Any help is great appreciate.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Any Mysql guru to help me please to retrieve a sum of meta_value’ is closed to new replies.