PHP
2
Вклад в тег
$name = $_POST['name'];
$phone = $_POST['phone'];
$power = $_POST['power'];
$productivity = $_POST['productivity'];
$power = $_POST['power'];
$presure = $_POST['presure'];
$scope = $_POST['scope'];
$request = json_decode(file_get_contents('php://input'));
$name = $request->name;
SELECT t.* FROM test_table t
JOIN
( SELECT model, MIN(s) minVal
FROM test_table GROUP BY model
) t2
ON t.s = t2.minVal AND t.model = t2.model;