🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
Advanced

SQL Data Integrity Verification

#sql #database testing #data integrity

Write SQL queries to verify data integrity and referential constraints in a database.

Write a set of SQL queries to perform data integrity checks on a database with `Orders` and `Customers` tables. The queries should identify orphan records (orders with no customer), duplicate customer email addresses, and orders with a negative total amount. Explain the purpose of each query.