1. What is MySQL?

    Tip: MySQL is a structured and reliable RDBMS widely used for managing relational data efficiently.

  2. Difference between SQL and NoSQL.

    Tip: SQL = structured and relational, NoSQL = flexible, scalable, and non-relational

  3. Difference between MySQL and MongoDB.

    Tip: MySQL = structured, relational, SQL-based, MongoDB = flexible, document-based, NoSQL.

  4. What are databases, tables, rows, and columns?

    Tip: Think of it as a spreadsheet: database = workbook, table = sheet, row = one entry, column = one attribute.

  5. What is a primary key?

    Tip: A primary key = unique identifier for each record in a table.

  6. What is a foreign key?

    Tip: A foreign key = a reference to a primary key in another table to maintain relationships.

  7. What is a unique key?

    Tip: A unique key = ensures column values are unique but allows multiple unique constraints per table.

  8. What is an index, and why is it used?

    Tip: An index = speeds up data lookup but may slightly slow down inserts, updates, and deletes.

  9. Types of indexes in MySQL.

    Tip: Index types = Primary, Unique, Regular, Composite, Full-Text, Spatial, each serving specific query optimization purposes.

  10. What is an auto-increment column?

    Tip: Auto-increment = automatic unique numbering for new rows, usually for primary keys.

  11. Difference between CHAR and VARCHAR.

    Tip: CHAR = fixed-length, VARCHAR = variable-length; choose based on data consistency.

  12. What is normalization? Explain 1NF, 2NF, 3NF.

  13. What is denormalization, and when is it used?

  14. What are constraints in MySQL?

  15. What is a stored procedure?

  16. What is a view in MySQL?

  17. What is a trigger?

  18. What is a transaction?

  19. Explain ACID properties.

  20. Difference between MyISAM and InnoDB storage engines.