{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1.60"
},
"ordering_operation": {
"using_filesort": true,
"table": {
"table_name": "prices",
"access_type": "range",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id",
"usergroup_id",
"lower_limit"
],
"key_length": "9",
"rows_examined_per_scan": 3,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.01",
"prefix_cost": "1.60",
"data_read_per_join": "3"
},
"used_columns": [
"product_id",
"price",
"percentage_discount",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`webmarco`.`prices`.`product_id` = 152066) and (`webmarco`.`prices`.`lower_limit` > 1) and (`webmarco`.`prices`.`usergroup_id` in (0,0,1)))"
}
}
}
}
product_id | lower_limit | usergroup_id | percentage_discount | price |
---|---|---|---|---|
152066 | 5 | 0 | 0.00 | 6.00 |
152066 | 12 | 0 | 0.00 | 4.50 |