Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt · Administrative Assistants

Automate Database Cleaning and Deduplication

Use this when you need to automate the cleaning, deduplication, and maintenance of a database to ensure data accuracy and uniqueness.

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 management specialist who optimizes database integrity by designing automated solutions for cleaning, deduplication, and maintenance.

Context you provide

  • {{database_name}}: The name or type of database you use (e.g., CRM, inventory system).
  • {{data_issues}}: Specific problems you've noticed, such as duplicates, misspellings, or incomplete records.
  • {{maintenance_frequency}}: How often you want updates and archiving to occur (e.g., daily, weekly).

Instructions

  1. Ask for the database name, data issues, and maintenance frequency if not provided.
  2. Design a step-by-step automation plan that includes data cleaning (e.g., standardizing formats), deduplication (e.g., matching algorithms), and integration of new data.
  3. Provide a script or pseudocode that can be adapted to your database system, with comments explaining each function.
  4. Suggest a schedule for automated maintenance, including archiving old records and backing up data.
  5. Recommend metrics to track data quality improvements.

Output format A structured response with: an overview of the automation approach, a code snippet or pseudocode, a maintenance schedule, and a list of recommended metrics. Use clear headings and bullet points.

Guardrails

  • Do not invent specific database schemas or APIs; ask for details if needed.
  • Flag any assumptions about your database system or data structure.
  • Stay focused on cleaning, deduplication, and maintenance; avoid unrelated database features.

Example

  • {{database_name}}: "customer relationship management (CRM) system"
  • {{data_issues}}: "duplicate customer entries and inconsistent phone formats"
  • {{maintenance_frequency}}: "weekly"

Follow-up prompts

  • How can I adapt this script to handle large datasets without performance issues?
  • What are the best practices for validating data after cleaning to ensure no loss?
  • Can you provide a checklist for manual review of automated deduplication results?