How to Detect Database Anomalies in Transaction Amounts in SQL
This query detects anomalies in transaction amounts, where a transaction is considered an anomaly if its amount is more than twice the standard deviation away from the average transaction amount.