Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "60.00"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"table": {
"table_name": "cscart_ult_product_prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"company_id",
"lower_limit",
"usergroup_id"
],
"key": "company_id",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 240,
"rows_produced_per_join": 8,
"filtered": "3.54",
"index_condition": "(`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`company_id` <=> 1)",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "1.70",
"prefix_cost": "60.00",
"data_read_per_join": "271"
},
"used_columns": [
"product_id",
"price",
"percentage_discount",
"lower_limit",
"company_id",
"usergroup_id"
],
"attached_condition": "((`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`lower_limit` = 1) and (`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`product_id` in (115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146)) and (`rajansecarter_single_store_19_jan`.`cscart_ult_product_prices`.`usergroup_id` in (0,0,1)))"
}
}
}
}
Result
| product_id |
price |
| 115 |
4595.000000 |
| 116 |
6.990000 |
| 117 |
729.990000 |
| 118 |
30.990000 |
| 119 |
17.990000 |
| 120 |
199.990000 |
| 121 |
17.990000 |
| 122 |
5695.000000 |
| 123 |
17.990000 |
| 124 |
4595.000000 |
| 125 |
149.990000 |
| 126 |
129.990000 |
| 127 |
4779.000000 |
| 128 |
17.990000 |
| 129 |
1799.000000 |
| 130 |
49.950000 |
| 131 |
1249.000000 |
| 132 |
269.990000 |
| 133 |
229.990000 |
| 134 |
89.990000 |
| 135 |
0.000000 |
| 136 |
0.000000 |
| 137 |
0.000000 |
| 138 |
0.000000 |
| 139 |
0.000000 |
| 140 |
99.950000 |
| 141 |
99.950000 |
| 142 |
399.950000 |
| 143 |
79.950000 |
| 144 |
99.950000 |
| 145 |
79.990000 |
| 146 |
44.990000 |