{
"query_block": {
"select_id": 1,
"read_sorted_file": {
"filesort": {
"sort_key": "prices.lower_limit",
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"rows": 2,
"filtered": 1.581027627,
"index_condition": "prices.lower_limit > 1 and prices.usergroup_id in (0,0,1)",
"attached_condition": "prices.product_id <=> 283"
}
}
}
}
}
| product_id | lower_limit | usergroup_id | percentage_discount | price |
|---|---|---|---|---|
| 283 | 5 | 0 | 0 | 2599.000000 |
| 283 | 10 | 0 | 0 | 2399.000000 |