Zum Hauptinhalt springen
•
Windows Tipps & SecurityMicrosoft präsentiert neue Windows Suche(08.10.2026 um 08:34 Uhr)
•••••
Windows Tipps & SecurityAndroid-Smartphone: So prüfen Sie, wie gut Ihr Akku noch ist(08.10.2026 um 10:30 Uhr)
•••••
Windows Tipps & SecurityMicrosoft präsentiert neue Windows Suche(08.10.2026 um 08:34 Uhr)
•••••
Windows Tipps & SecurityAndroid-Smartphone: So prüfen Sie, wie gut Ihr Akku noch ist(08.10.2026 um 10:30 Uhr)
••••
Intelligence View
⚡ tsecurity.de Intelligence

SQL: is there a better way to code this?

Is there a better way to find the high-waterline values in a column in SQL? I want to make the best apples-to-apples comparison to the csvpath one-liner at the…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!

Is there a better way to find the high-waterline values in a column in SQL? I want to make the best apples-to-apples comparison to the csvpath one-liner at the bottom.




~
This csvpath finds all the new high-value thresholds in a CSV file.
It gives the same output as this SQL:

SELECT
id,
worker_hours_this_period
FROM(
SELECT
id,
worker_hours_this_period,
MAX(worker_hours_this_period)
OVER (ORDER BY id ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING) AS max_prev_value
FROM
projects
) AS subquery
WHERE
worker_hours_this_period > max_prev_value OR max_prev_value IS NULL;

id: New high value csvpath
test-data: examples/headers/projects_with_reset.csv
~
$[1*][
@hours.onchange.increase = float(#worker_hours_this_period)

print.onmatch("line: $.csvpath.line_number: $.variables.hours")
]


🔍 CTI & Forensik

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar · Exploit-Belege
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Intelligence Digest — kostenlos Täglich die wichtigsten Security-News · jederzeit abbestellbar
Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War diese Seite hilfreich?
0
Jetzt Bewertung abgeben
🟢 Niedrig (1-3.9) 🟡 Mittel (4.0-6.9) 🔴 Hoch (7.0-8.9) Kritisch (9.0-10.0)

Verwandte Story-Cluster & Quellen (Vektor-KI)

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten SQL: is there a better way to code this?

Thematisch verwandte Begriffe: there, better, code, this · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Nächster Beitrag