geomon/automatic_inclinometer/firebird_queries.sql
Arno Kaimbacher 7f08225b40 - add additional projecta reas for the automatic inclinometer import
- beginning with voegelsberg (ftp download, moving objects)
2022-03-23 16:30:17 +01:00

85 lines
4.0 KiB
SQL

SELECT a.CATENA, a.SENSORE, a.DATA, a.ORA, a.TENSIONE, a.ASSORBIMENTO, c.NOME
FROM ALIMENTAZIONI as a, CATENE as c
WHERE c.CHIAVE = a.CATENA AND
c.NOME = 'Sibratsgfall';
SELECT "DATI_ACQUISITI"."PITCH", "DATI_ACQUISITI"."ROLL", "DATI_ACQUISITI"."ORA", "DATI_ACQUISITI"."SENSORE", "DATI_ACQUISITI"."DATA", "DATI_ACQUISITI"."TEMPERATURA", "DATI_ACQUISITI"."CATENA", "CATENE_1"."CHIAVE", "CATENE_1"."NOME"
FROM "DATI_ACQUISITI"
JOIN "CATENE" ON "CATENE"."CHIAVE" = "DATI_ACQUISITI"."CATENA" LEFT OUTER JOIN "CATENE" AS "CATENE_1" ON "CATENE_1"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
WHERE "DATI_ACQUISITI"."SENSORE" = 1 AND "CATENE"."NOME" = 'Sibratsgfall'
SELECT COUNT(*), SENSORE
FROM DATI_ACQUISITI GROUP BY SENSORE
SELECT "DATI_ACQUISITI"."SENSORE", "CATENE_1"."NOME"
SELECT COUNT(*), "DATI_ACQUISITI"."SENSORE"
FROM "DATI_ACQUISITI"
JOIN "CATENE" ON "CATENE"."CHIAVE" = "DATI_ACQUISITI"."CATENA" LEFT OUTER JOIN "CATENE" AS "CATENE_1" ON "CATENE_1"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
WHERE "CATENE_1"."NOME" = 'GSA01A-033-0909'
GROUP BY "DATI_ACQUISITI"."SENSORE"
SELECT COUNT(*), "DATI_ACQUISITI"."SENSORE"
FROM "DATI_ACQUISITI"
JOIN "CATENE" ON "CATENE"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
LEFT OUTER JOIN "CATENE" AS "CATENE_1" ON "CATENE_1"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
WHERE "CATENE_1"."NOME" = 'Sibratsgfall'
GROUP BY "DATI_ACQUISITI"."SENSORE"
SELECT "DATI_ACQUISITI"."PITCH", "DATI_ACQUISITI"."ROLL", "DATI_ACQUISITI"."SENSORE"
FROM "DATI_ACQUISITI"
JOIN "CATENE" ON "CATENE"."CHIAVE" = "DATI_ACQUISITI"."CATENA" LEFT OUTER JOIN "CATENE" AS "CATENE_1" ON "CATENE_1"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
WHERE "CATENE_1"."NOME" = 'Sibratsgfall'
SELECT COUNT(*), "DATI_ACQUISITI"."SENSORE"
FROM "DATI_ACQUISITI"
JOIN "CATENE" ON "CATENE"."CHIAVE" = "DATI_ACQUISITI"."CATENA" LEFT OUTER JOIN "CATENE" AS "CATENE_1" ON "CATENE_1"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
WHERE "CATENE_1"."NOME" = 'GSA02B-007-0911'
GROUP BY "DATI_ACQUISITI"."SENSORE"
SELECT "DATI_ACQUISITI"."PITCH", "DATI_ACQUISITI"."ROLL", "DATI_ACQUISITI"."SENSORE"
FROM "DATI_ACQUISITI"
JOIN "CATENE" ON "CATENE"."CHIAVE" = "DATI_ACQUISITI"."CATENA" LEFT OUTER JOIN "CATENE" AS "CATENE_1" ON "CATENE_1"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
WHERE "CATENE_1"."NOME" = 'GSA02B-007-0911'
SELECT CHIAVE, NOME, NUMERO_SENSORI, SITO
FROM CATENE ORDER BY CHIAVE ;
SELECT a.CATENA, a.SENSORE, a.DATA, a.ORA, a.TENSIONE, a.ASSORBIMENTO, c.NOME
FROM ALIMENTAZIONI as a, CATENE as c
WHERE c.CHIAVE = a.CATENA AND
c.NOME = 'TAC003-020-0517';
SELECT COUNT(*), "DATI_ACQUISITI"."SENSORE"
FROM "DATI_ACQUISITI"
JOIN "CATENE" ON "CATENE"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
LEFT OUTER JOIN "CATENE" AS "CATENE_1" ON "CATENE_1"."CHIAVE" = "DATI_ACQUISITI"."CATENA"
WHERE "CATENE_1"."NOME" = 'TAC003-020-0517'
GROUP BY "DATI_ACQUISITI"."SENSORE"
CHIAVE NOME NUMERO_SENSORI SITO x y
2 Sibratsgfall 17 Sibratsgfaell 47.4279229,10.0360845
3 GSA01A-033-0909 34 Gschliefgraben (Gmunden) 47.8845629,13.8199351
5 GSA002-017-0510 17 Rosano 43.7685394,11.4232703
6 GSA02A-010-1210 10 Ampflwang - KB1 48.0889892,13.5583703
7 GSA02B-007-1210 17 Ampflwang - KB2 48.088,13.5583
8 GSA02B-007-0911 19 Laakirchen 47.9789118,13.8141457 erledigt
9 Copy of GSA002-017-0510 17 Rosano 43.7685394,11.4232703
10 GSA02B-007-0613 17 Pechgraben Haus 47.9193704,14.5242307
11 Copy of GSA02B-007-0911 19 Laakirchen 47.9789118,13.8141457
12 GSA02A-010-0613 10 Pechgraben Wiese 47.9193704,14.5242307
13 TAC003-020-0713 20 Pechgraben 47.9193704,14.5242307
14 TAC003-020-1213 20 Pechgraben KB1 47.9193704,14.5242307
15 GSA02A-010-1213 10 Pechgraben KB2 47.9193704,14.5242307
16 TAC003-020-0414 20 Pechgraben KB1 47.9193704,14.5242307
17 TAC003-020-0517 20 Wolfsegg KB1 48.1064354,13.6731638 erledigt
18 GSA02A-010-0517 10 Wolfsegg KB3 48.1064354,13.6731638
19 TAC005-013-0517 14 Wolfsegg KB2 48.1064354,13.6731638
20 GSA003-020-0517 34 Wolfsegg KB5 48.1064354,13.6731638
21 Copy of TAC003-020-0517 20 Wolfsegg KB1 48.1064354,13.6731638