Give All SQL Commands in A PDF of DDL, DML, DCL, TCL
Give All SQL Commands in A PDF of DDL, DML, DCL, TCL
Key Commands:
CREATE: Creates tables/databases.
CREATE TABLE Employees (id INT, name VARCHAR(50)); -- [^4][^5]
Case Study: Designing a Students table with columns id, name, and age [1] [2] .
Key Commands:
INSERT: Adds data.
INSERT INTO Customers (id, name) VALUES (1, 'Alice'); -- [^1][^5]
Case Study: Updating salaries for employees in the Sales department [3] [4] .
Key Commands:
GRANT: Provides privileges.
GRANT SELECT, UPDATE ON Customers TO user1; -- [^1][^5]
Case Study: Restricting user1 from modifying the Orders table [5] [2] .
Key Commands:
COMMIT: Saves changes permanently.
COMMIT; -- [^4][^7]
SELECT id, name, salary FROM Customers WHERE salary > 2000; -- [^12]
This query retrieves high-earning customers, demonstrating SELECT with a WHERE clause [6] .
For a detailed PDF, compile these commands with expanded examples from the sources [5] [1] [2]
[3] [6] .
1. https://www.scribd.com/document/833757095/SQL-Ddl-Dml-Tcl-Commands-With-Examples
2. https://k21academy.com/microsoft-azure/data-engineer/sql-commands/
3. https://trainings.internshala.com/blog/different-types-of-sql-commands/
4. https://www.edureka.co/blog/sql-commands
5. https://www.programiz.com/sql/commands
6. https://www.sathyabama.ac.in/sites/default/files/course-material/2020-10/UNIT-II_15.pdf