In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
CREATE INDEX test_idx_pici ON test (pici);
SELECT
t.pici pici,
min(t.fdate) minfdate,
max(t.rdate) maxrdate,
count(1) countNum
FROM
test t
GROUP BY
t.pici
ORDER BY
minfdate DESC