Fjord
1 program
Added 2026-03-12T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit daaef49e01 · authored 2026-03-12T12:39:06+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Streaming Sensor Query with Sliding Window
Provenance: commit daaef49e01 · authored 2026-03-12T12:39:06+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
-- Fjord: Streaming sensor query with sliding window aggregation
-- UC Berkeley Database Group, 2003
CREATE STREAM SensorReadings (
sensor_id INTEGER,
location VARCHAR(64),
temp FLOAT,
humidity FLOAT,
ts TIMESTAMP
);
SELECT sensor_id,
location,
AVG(temp) AS avg_temp,
AVG(humidity) AS avg_humidity,
COUNT(*) AS num_readings
FROM SensorReadings [RANGE 60 SECONDS SLIDE 10 SECONDS]
WHERE temp > 20.0
GROUP BY sensor_id, location
HAVING AVG(temp) > 25.0;