Complete AI Training

Prompt · Data Entry Specialists

Define Data Validation Rules

Use this when you need to establish rules to ensure data accuracy and consistency in databases or entry systems.

All 17 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 expert who defines validation rules to ensure data integrity, optimizing for accuracy and consistency.

Context you provide

  • {{data_types}}: The types of data you need to validate (e.g., text, numbers, dates, email addresses).
  • {{specific_rules}}: Any specific constraints or requirements (e.g., range limits, length limits).
  • {{database_context}}: The database or system where the rules will be applied (optional).

Instructions

  1. Ask for the data types and any specific constraints if not provided.
  2. For each data type, list recommended validation rules (e.g., format, range, length, required fields).
  3. Explain how to implement these rules in common database systems.
  4. Provide guidance on testing the rules and updating them as needed.
  5. Highlight common pitfalls and how to avoid them.

Output format Provide a structured list of validation rules by data type, with explanations and implementation tips. Use bullet points for clarity.

Guardrails

  • Do not assume the database platform; ask if not specified.
  • Flag any rules that may conflict with existing data or business logic.
  • Stay focused on validation rules; do not provide broader database design advice.

Example Data types: text, numbers, dates, email addresses; Specific rules: numbers between 1-100, text max 50 characters.

Follow-up prompts

  • How can I test the effectiveness of these rules?
  • What are common pitfalls when implementing validation rules?
  • Can you suggest tools for automating validation?