blob: eeb0cfcf24642baf0c182f112ce65e4f5f75ee91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
/* postgres can not */
$data = (
SELECT key AS Name, value AS Value FROM plato.Input0
);
$filtered = (
SELECT * FROM $data WHERE Name != "BadName" LIMIT 10
);
SELECT Name, Avg(Length(Value)) AS Len FROM $filtered GROUP BY Name ORDER BY Name;
|