Create a Customer Feedback Table Using String Types
📖 Scenario: You work for a company that collects customer feedback. You need to create a database table to store customer names, their email addresses, and their feedback messages.
🎯 Goal: Build a MySQL table named customer_feedback using appropriate string types: VARCHAR for names and emails, and TEXT for feedback messages.
📋 What You'll Learn
Create a table named
customer_feedbackAdd a
name column with type VARCHAR(50)Add an
email column with type VARCHAR(100)Add a
feedback column with type TEXTUse
CHAR(2) for a rating column to store short codes💡 Why This Matters
🌍 Real World
Companies often store customer feedback in databases using appropriate string types to save space and improve performance.
💼 Career
Knowing how to choose and use string types in SQL is essential for database design and management roles.
Progress0 / 4 steps