Generate Synthetic Test Data for Database Testing
Create realistic synthetic test data for databases and applications. Generate CSV files with custom schemas, relationships, and realistic values.
Prompt Template
Variables to Customize
[DATABASE_TABLE] Name and type of the database table or dataset
Example: user_profiles table for an e-commerce application
[COLUMN_SPECIFICATIONS] Detailed column definitions with data types and constraints
Example: user_id (INTEGER, PRIMARY KEY), email (VARCHAR, UNIQUE), first_name (VARCHAR), last_name (VARCHAR), birth_date (DATE), account_status (ENUM: active, inactive, suspended), created_at (TIMESTAMP)
[NUMBER_OF_RECORDS] How many test records to generate
Example: 500
[DOMAIN_CONTEXT] Business domain or industry context
Example: e-commerce platform
[ADDITIONAL_CONSTRAINTS] Any specific business rules or data constraints
Example: 20% of users should be inactive, birth_dates should span ages 18-80, email domains should be realistic
[TESTING_PURPOSE] What type of testing this data will be used for
Example: performance testing and user authentication workflows
Example Output
Pro Tips for Best Results
- Be specific about data relationships and foreign key constraints to ensure referential integrity
- Request a mix of valid and invalid data to test error handling and validation logic
- Specify realistic distributions (percentages) for categorical fields to mirror production data
- Include edge cases like boundary values, nulls, and special characters for comprehensive testing
- Ask for data export in multiple formats if you need compatibility with different testing tools
Tags
Want 500+ Expert Prompts?
Get the Premium Prompt Pack — organized, tested, and ready to use.
Get it for $29Related Prompts You Might Like
Validate Data Entry Format
You are a data validation specialist. I need you to validate the format of data entries and identify any formatting issu...
Build ETL Data Pipeline
You are a senior data engineer tasked with designing and implementing a comprehensive ETL (Extract, Transform, Load) dat...
Write Advanced SQL Window Functions
You are an expert SQL developer specializing in analytical queries and window functions. I need you to write SQL window ...
Analyze Website Traffic Data
I need you to analyze website traffic data and provide actionable insights. Please examine the following metrics and dat...
Remove Duplicates from Dataset
I need help removing duplicates from my dataset. Please analyze the following data and provide a comprehensive deduplica...
Generate SQL Queries with Complex Joins
Act as an expert SQL database developer. I need you to write a SQL query that joins multiple tables to retrieve specific...