DBMS Lab: Basic SQL Important Questions

  1. Explain the difference between DDL, DML, and DCL commands with examples.
  2. Write an SQL query to find the second highest salary from an Employee table.
  3. Differentiate between INNER JOIN, LEFT JOIN, and RIGHT JOIN.
  4. What is the difference between the WHERE and HAVING clauses?