← All topics / सभी विषय
Interview preparation / साक्षात्कार अभ्यास

SQL

60 questions / प्रश्न · 7 sections

SQL Fundamentals Q1–10

  1. What is SQL?SQL क्या है?
  2. What is the difference between SQL and MySQL?SQL और MySQL में अंतर क्या है?
  3. What is Database and DBMS?Database और DBMS क्या है?
  4. What is Relational Database?Relational Database क्या होता है?
  5. What is Table, Row and Column?Table, Row और Column क्या होते हैं?
  6. What is Primary Key?Primary Key क्या होती है?
  7. What is Foreign Key?Foreign Key क्या होती है?
  8. What is the difference between Primary Key and Foreign Key?Primary Key और Foreign Key में क्या अंतर है?
  9. What is NULL?NULL क्या होता है?
  10. What is the difference between NULL and 0 / empty string?NULL और 0 / empty string में क्या अंतर है?

SELECT, Filtering & Sorting Q11–20

  1. What is SELECT statement?SELECT statement क्या है?
  2. Explain WHERE clause.WHERE clause क्या करता है?
  3. How do you use AND , OR , NOT?AND , OR , NOT कैसे उपयोग करते हैं?
  4. What is IN and NOT IN?IN और NOT IN क्या हैं?
  5. What is BETWEEN?BETWEEN क्या है?
  6. What is LIKE and wildcard % / _?LIKE और wildcard % / _ क्या हैं?
  7. Explain ORDER BY.ORDER BY क्या करता है?
  8. What is the difference between ASC and DESC?ASC और DESC में क्या अंतर है?
  9. Explain DISTINCT.DISTINCT क्या करता है?
  10. What is LIMIT ka use?LIMIT का उपयोग क्या है?

Aggregate Functions & GROUP BY Q21–28

  1. What is Aggregate function?Aggregate function क्या होता है?
  2. Explain COUNT().COUNT() क्या करता है?
  3. What is SUM() , AVG() , MIN() , MAX()?SUM() , AVG() , MIN() , MAX() क्या हैं?
  4. Explain GROUP BY.GROUP BY क्या करता है?
  5. What is the difference between WHERE and HAVING?WHERE और HAVING में क्या अंतर है?
  6. Explain GROUP BY saath HAVING kab.GROUP BY के साथ HAVING कब उपयोग करते हैं?
  7. What is the difference between COUNT(*) and COUNT(column)?COUNT(*) और COUNT(column) में क्या अंतर है?
  8. How do you find Department-wise average salary?Department-wise average salary कैसे find करेंगे?

JOINs Q29–38

  1. What is SQL JOIN?SQL JOIN क्या होता है?
  2. What is INNER JOIN?INNER JOIN क्या है?
  3. What is LEFT JOIN?LEFT JOIN क्या है?
  4. What is RIGHT JOIN?RIGHT JOIN क्या है?
  5. What is FULL OUTER JOIN?FULL OUTER JOIN क्या है?
  6. What is CROSS JOIN?CROSS JOIN क्या है?
  7. What is SELF JOIN?SELF JOIN क्या है?
  8. What is the difference between INNER JOIN and LEFT JOIN?INNER JOIN और LEFT JOIN में क्या अंतर है?
  9. How would you approach Multiple tables JOIN?Multiple tables को JOIN कैसे करेंगे?
  10. How would you approach Customers Orders tables JOIN karke customer-wise sales nikaloge?Customers और Orders tables को JOIN karke customer-wise sales कैसे nikaloge?

Subqueries & CTE Q39–45

  1. What is Subquery?Subquery क्या होती है?
  2. What is the difference between Subquery and JOIN?Subquery और JOIN में क्या अंतर है?
  3. What is Correlated subquery?Correlated subquery क्या होती है?
  4. Explain EXISTS.EXISTS क्या करता है?
  5. How do IN and EXISTS mein difference differ?IN vs EXISTS में क्या अंतर है?
  6. What is CTE?CTE क्या है?
  7. What is the difference between CTE and subquery?CTE और subquery में क्या अंतर है?

Window Functions Q46–52

  1. What is Window Function?Window Function क्या होती है?
  2. What is the difference between Window Function and GROUP BY?Window Function और GROUP BY में क्या अंतर है?
  3. Explain ROW_NUMBER().ROW_NUMBER() क्या करता है?
  4. What is the difference between RANK() and DENSE_RANK()?RANK() और DENSE_RANK() में क्या अंतर है?
  5. Explain PARTITION BY.PARTITION BY क्या करता है?
  6. What is LAG() and LEAD()?LAG() और LEAD() क्या हैं?
  7. How do you find Department-wise top 3 employees?Department-wise top 3 employees कैसे find करेंगे?

Database Design, Index & Transactions Q53–60

  1. What is Database normalization?Database normalization क्या है?
  2. What is 1NF, 2NF and 3NF?1NF, 2NF और 3NF क्या हैं?
  3. What is Index?Index क्या होता है?
  4. How would you approach Index query fast banata?Index query को fast कैसे बनाता है?
  5. What is Index ke disadvantages?Index के disadvantages क्या हैं?
  6. What is Transaction?Transaction क्या होता है?
  7. What is ACID properties?ACID properties क्या हैं?
  8. How do you optimize SQL query slow ho to performance?SQL query slow हो तो performance कैसे optimize करेंगे?