✅ SQL / MySQL PYQ – Important Questions List

🔹 Section 1: Basic Concepts (Theory)

ये questions almost हर साल पूछे जाते हैं

  1. DBMS क्या है? Advantages लिखो

  2. RDBMS क्या है? DBMS और RDBMS में difference

  3. SQL क्या है? इसकी types बताओ

  4. Data types in MySQL

  5. Primary Key क्या है?

  6. Foreign Key क्या है?

  7. Candidate Key vs Primary Key

  8. Unique key और Primary key में difference

  9. Constraint क्या होते हैं? Types

  10. Normalization क्या है? 1NF, 2NF, 3NF समझाओ


🔹 Section 2: SQL Commands (Very Important)

⭐ DDL Commands

  1. CREATE TABLE syntax

  2. ALTER TABLE क्या है?

  3. DROP vs DELETE vs TRUNCATE difference

  4. Table में column add कैसे करते हैं?

  5. Rename table कैसे करते हैं?


⭐ DML Commands

  1. INSERT query syntax

  2. UPDATE query example

  3. DELETE query example

  4. SELECT statement explain


🔹 Section 3: Query Based PYQ (Most Important for Exams)

Table Example:

Student(id, name, marks, city)


Basic Queries

  1. सभी records show करो

  2. सिर्फ name column show करो

  3. marks > 60 वाले students दिखाओ

  4. city = 'Delhi' वाले students दिखाओ

  5. marks between 50 and 80


Aggregate Functions

  1. COUNT students

  2. MAX marks

  3. MIN marks

  4. AVG marks

  5. SUM marks


GROUP BY

  1. city wise student count निकालो

  2. city wise average marks


ORDER BY

  1. marks descending order

  2. name ascending order


LIKE Operator

  1. name starting with 'A'

  2. name ending with 'n'

  3. name containing 'ra'


Joins (Most repeated PYQ ⭐)

  1. JOIN क्या है? Types

  2. INNER JOIN example

  3. LEFT JOIN example

  4. RIGHT JOIN example

  5. Self Join क्या है?


Subqueries

  1. highest marks वाले student का नाम निकालो

  2. average marks से ज्यादा marks वाले students


Constraints Practical

  1. Primary key लगाकर table create करो

  2. NOT NULL use करो

  3. DEFAULT value set करो

  4. CHECK constraint example


Index & View

  1. Index क्या है?

  2. View क्या है? View create syntax

  3. View के advantages


🔹 Section 4: MySQL Specific Questions

  1. MySQL क्या है?

  2. MySQL server कैसे start करते हैं?

  3. Database create कैसे करते हैं?

  4. Database delete कैसे करते हैं?

  5. SHOW DATABASES command

  6. SHOW TABLES command

  7. USE database command

  8. MySQL में Auto Increment क्या है?

  9. LIMIT clause क्या है?

  10. Stored Procedure क्या है?


🔹 Section 5: Frequently Asked Long Questions

  1. ER Diagram draw करो

  2. Normalization steps explain करो

  3. ACID properties क्या हैं?

  4. Transaction क्या है? COMMIT/ROLLBACK

  5. SQL vs NoSQL difference

  6. Clustered vs Non-clustered index

  7. Trigger क्या है?

  8. Function और Procedure difference

  9. Deadlock क्या है?

  10. Backup और Recovery methods

Last modified: Wednesday, 4 February 2026, 1:19 AM