SELECT "CITY", "AREA", "REGION"
FROM youtube
GROUP BY "CITY", "AREA", "REGION"
2 запрос:SELECT DISTINCT "CITY", "AREA", "REGION" FROM youtube
SELECT "CITY", "AREA", "REGION"
FROM youtube
GROUP BY "CITY", "AREA", "REGION"
SELECT CONCAT("CITY", ' | ', "AREA", ' | ', "REGION") AS LOCATION FROM (
SELECT "CITY", "AREA", "REGION", COUNT(*) FROM youtube GROUP BY "CITY", "AREA", "REGION"
) youtube;
restrictMapArea: true. self.map = new ymaps.Map("yandex-map", {
center: [48.352571497155054, 64.04235076905002],
controls: [zoomControl, searchControl, 'fullscreenControl'],
searchControlProvider: 'yandex#search',
zoom: 5,
options: {
minZoom: 12,
maxZoom: 16,
}
});pool.query(sql_statement).stream({highWaterMark: 5}).pipe(res);TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string or Buffer. Received type object const query = pool.query(sql_statement, binds);
query.on('result', function(error, row) {
if (error) throw error;
console.log(row);
});