Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

No Sale Price, Has Price, No empty SKUs

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => '_sale_price',
		'value'   => 'DELETEME',
		'compare' => '=',
		'type'    => 'CHAR',
	),
	array(
		'key'     => '_price',
		'value'   => '0.01',
		'compare' => '>=',
		'type'    => 'NUMERIC',
	),
	array(
		'key'     => '_sku',
		'value'   => 'DELETEME',
		'compare' => '!=',
		'type'    => 'CHAR',
	),
);