Normalize Database Table Structure
AI prompt to analyze and normalize database table structures, eliminate redundancy, and create proper relationships for optimal performance.
Prompt Template
Variables to Customize
[TABLE_STRUCTURE] The current table structure with column names, data types, and sample data
Example: customers_orders (customer_id, customer_name, customer_email, customer_phone, order_id, order_date, product_name, product_price, quantity, category)
[NORMALIZATION_LEVEL] The target normalization form to achieve
Example: Third Normal Form (3NF)
[DATABASE_TYPE] The specific database management system being used
Example: PostgreSQL
Example Output
Pro Tips for Best Results
- Always start by identifying functional dependencies between columns to understand normalization violations
- Consider the specific query patterns and performance requirements when deciding on normalization level
- Include proper indexing strategy for foreign keys to maintain query performance
- Document the relationships clearly to help future developers understand the schema design
- Test the migration strategy with a subset of data before applying to production tables
Tags
Want 500+ Expert Prompts?
Get the Premium Prompt Pack — organized, tested, and ready to use.
Get it for $29Related Prompts You Might Like
Optimize SQL Query Performance
You are a senior database performance engineer specializing in SQL query optimization. I need you to analyze and optimiz...
Design Database Schema
You are an experienced database architect. I need help designing a comprehensive database schema for [APPLICATION_TYPE]....
Calculate Statistical Significance
I need you to calculate statistical significance for my data analysis. Please act as a statistician and perform a compre...
Cluster Customer Behavior Data
You are a data scientist specializing in customer analytics. I need you to analyze customer behavior data and create mea...
Visualize Geographic Sales Data
You are a data visualization expert specializing in geographic sales analysis. I need you to create a comprehensive visu...
Handle Missing Data Values
You are an expert data scientist specializing in data preprocessing and missing data analysis. I need comprehensive guid...