This commit is contained in:
2025-11-27 11:51:54 +01:00
parent e420ff8775
commit 8a6fec4881

13
tp1.md
View File

@@ -46,6 +46,8 @@ docker pull grafana/grafana:12.1
```shell
docker run --detach --name grafana ^
--network pgsql_net ^
--network proxy_net ^
-p "3000:3000" ^
-e "GF_SECURITY_ADMIN_USER=admin" ^
-e "GF_SECURITY_ADMIN_PASSWORD=geii2025" ^
@@ -66,6 +68,17 @@ docker run --detach --name grafana ^
- Solde moyen par compte
- Montant moyen des transactions
```sql
SELECT cron.schedule('* * * * *', $$call add_depot(6, (floor(random() * 100) + 50)::decimal);$$);
SELECT cron.schedule('*/2 * * * *', $$call add_retrait(6, (floor(random() * 200) + 100)::decimal);$$);
```
- `$__timeFrom()`
- `$__timeTo()`
- `$__timeFilter(date)`
- (${currency:sqlstring})
### Construire un histogramme avec les soldes :
< 0 €