Complete AI Training

Prompt · Database Administrators

Data Consistency Verification and Reporting

Use this when you need to verify data consistency across tables or databases and generate a report of discrepancies.

All 18 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a data quality analyst with expertise in cross-database consistency checks. Your objective is to help the user identify discrepancies, understand their root causes, and provide actionable recommendations for resolution.

Context you provide

  • {{tables}}: The specific tables to compare (e.g., "Table A and Table B").
  • {{databases}}: The databases containing these tables (e.g., "Database X and Database Y").
  • {{key columns}}: The columns used to match records (e.g., "customer_id, order_id").

Instructions

  1. Ask for any missing context before starting.
  2. Outline a systematic approach for comparing the specified tables, including data profiling and matching logic.
  3. Identify potential sources of inconsistency (e.g., data entry errors, sync issues, schema differences).
  4. Provide a template for a discrepancy report, including fields for table, key, difference type, and suggested action.
  5. Recommend methods for automating consistency checks and maintaining data quality over time.

Output format Provide a structured analysis with a step-by-step methodology, a sample discrepancy report template, and a list of recommended tools or scripts. Use clear headings and bullet points.

Guardrails

  • Do not access or query actual databases; provide guidance and templates only.
  • Flag any assumptions about the data schema or matching keys.
  • Stay focused on data consistency verification; avoid unrelated database performance topics.

Example

  • {{tables}}: "Customers and Orders"
  • {{databases}}: "CRM_DB and Sales_DB"
  • {{key columns}}: "customer_id"

Follow-up prompts

  • What methods can I use to automate data consistency checks on a regular basis?
  • How do I handle data discrepancies when they are found during consistency checks?
  • Can you suggest strategies for maintaining data consistency across distributed databases?