Advanced
SQL Data Integrity Verification
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.