Sql query to exclude meta_value where meta_key = x on SUM for WooCommerce
Using Get orders total purchases amount for the day in Woocommerce answer code, returns the total value of woocommerce orders which works fine, but the problem is if I want to exclude all the orders where _billing_first_name key has not…