MySQL Interview Preparation Guide for Freshers
Introduction to MySQL
MySQL is an open-source relational database management system (RDBMS) based on SQL
(Structured Query Language). It is widely used in web applications, data analytics, and
enterprise systems. Freshers should understand basic concepts, commands, indexing, joins,
normalization, and common interview queries.
Key MySQL Concepts Every Fresher Must Know
1. What is a Database?
2. What is MySQL and why is it used?
3. Relational Database Concepts (Tables, Rows, Columns)
4. SQL Data Types
5. Constraints (PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, CHECK)
6. Basic SQL Commands (DDL, DML, DCL, TCL)
7. Joins (INNER, LEFT, RIGHT, FULL)
8. Indexes
9. Views
10. Stored Procedures
11. Functions
12. Triggers
13. Transactions
14. ACID Properties
15. Normalization Forms
MySQL Interview Questions and Answers (Easy to Medium)
What is MySQL?
MySQL is an open-source relational database management system that stores data in tables
using SQL for querying.
What is a Primary Key?
A Primary Key uniquely identifies each row in a table and cannot contain NULL values.
What is a Foreign Key?
A Foreign Key establishes a link between two tables and maintains referential integrity.
What are Joins?
Joins are used to fetch data from multiple tables based on related columns.
Difference between WHERE and HAVING?
WHERE filters rows before grouping; HAVING filters groups after aggregation.
What is Normalization?
Normalization is the process of organizing data to reduce redundancy and improve
consistency.
What is a Transaction?
A transaction is a group of operations executed as a single unit following ACID properties.
What is an Index?
An index is a data structure used to improve query performance by enabling faster search.
What is the difference between DELETE, TRUNCATE, and DROP?
DELETE removes specific rows, TRUNCATE removes all rows but keeps the structure, DROP
deletes the entire table.
What is a View?
A view is a virtual table created from a SQL query, stored for simpler data access.