Det kan gøres ved nogle tricks.
SELECT id,
price,
code
FROM table1
WHERE id IN (SELECT Ceil(Avg(id)) AS `id`
FROM table1
GROUP BY code);
Det kan gøres ved nogle tricks.
SELECT id,
price,
code
FROM table1
WHERE id IN (SELECT Ceil(Avg(id)) AS `id`
FROM table1
GROUP BY code);