SELECT ...
FROM ...
ORDER @ x-1.3 ASC
LIMIT 1
echo $query;
var Places = new Array();
Places[12] = {
coordinates: [50.542184,137.013194],
baloonHeader: 'ЛЯЛЯЛЯ',
baloonBody: 'ЛЯЛЯЛЯЛ',
baloonFooter: 'ЛЯЛЯЛ'
};
Places[17] = {
coordinates: [50.542184,137.013194],
baloonHeader: 'ЛЯЛЯЛЯ',
baloonBody: 'ЛЯЛЯЛЯЛ',
baloonFooter: 'ЛЯЛЯЛ'
};
SELECT
d.*,
sum(d.day_sum) OVER (PARTITION BY date_trunc('month', d.f_timestamp)) as month_sum
FROM (
SELECT
f_timestamp::date,
sum(value::real) as day_sum
FROM analiz_data
GROUP BY f_timestamp::date
) d
$mysqli->query("INSE...");