Skip to content

Commit da74150

Browse files
authored
Merge pull request #4 from Vipul1432/feature/detailed-sql-cheatsheet
Update commands/README.md to reflect completion of all SQL commands
2 parents 4cc0551 + 176ad42 commit da74150

File tree

1 file changed

+43
-28
lines changed

1 file changed

+43
-28
lines changed

commands/README.md

Lines changed: 43 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ commands/
1515
│ ├── SELECT.md # Query data
1616
│ ├── INSERT.md # Add new records
1717
│ ├── UPDATE.md # Modify existing records
18-
│ └── DELETE.md # Remove records (Coming Soon)
18+
│ └── DELETE.md # Remove records
1919
├── DCL/ # Data Control Language
20-
│ ├── GRANT.md # Give permissions (Coming Soon)
21-
│ └── REVOKE.md # Remove permissions (Coming Soon)
20+
│ ├── GRANT.md # Give permissions
21+
│ └── REVOKE.md # Remove permissions
2222
└── TCL/ # Transaction Control Language
23-
├── COMMIT.md # Save changes (Coming Soon)
24-
├── ROLLBACK.md # Undo changes (Coming Soon)
25-
└── SAVEPOINT.md # Set transaction savepoint (Coming Soon)
23+
├── COMMIT.md # Save changes
24+
├── ROLLBACK.md # Undo changes
25+
└── SAVEPOINT.md # Set transaction savepoint
2626
```
2727

2828
---
@@ -55,45 +55,57 @@ DML commands are used to manipulate data within database objects.
5555

5656
### ✅ Available Commands
5757

58-
| Command | Purpose | Status | Description |
59-
| --------------------------- | -------------- | -------------- | ------------------------------------------------------ |
60-
| **[SELECT](DML/SELECT.md)** | Query Data | ✅ Complete | Retrieve data with filtering, sorting, grouping, joins |
61-
| **[INSERT](DML/INSERT.md)** | Add Records | ✅ Complete | Add new rows with various data sources and methods |
62-
| **[UPDATE](DML/UPDATE.md)** | Modify Records | ✅ Complete | Change existing data with conditions and joins |
63-
| **DELETE** | Remove Records | 🔄 Coming Soon | Delete specific rows based on conditions |
58+
| Command | Purpose | Status | Description |
59+
| --------------------------- | -------------- | ----------- | ------------------------------------------------------ |
60+
| **[SELECT](DML/SELECT.md)** | Query Data | ✅ Complete | Retrieve data with filtering, sorting, grouping, joins |
61+
| **[INSERT](DML/INSERT.md)** | Add Records | ✅ Complete | Add new rows with various data sources and methods |
62+
| **[UPDATE](DML/UPDATE.md)** | Modify Records | ✅ Complete | Change existing data with conditions and joins |
63+
| **[DELETE](DML/DELETE.md)** | Remove Records | ✅ Complete | Delete specific rows based on conditions |
6464

6565
### 🚀 Key Features Covered
6666

6767
- **SELECT**: Complete query syntax, joins, subqueries, window functions, CTEs, performance optimization
6868
- **INSERT**: Single/multiple row insertion, bulk operations, conflict resolution, database-specific features
6969
- **UPDATE**: Conditional updates, joins, subqueries, CASE statements, audit trails
70+
- **DELETE**: Selective deletion, JOINs with DELETE, safety practices, vs TRUNCATE/DROP comparison
7071

7172
---
7273

7374
## 🔐 DCL Commands (Data Control Language)
7475

7576
DCL commands control access permissions to database objects.
7677

77-
### 🔄 Planned Commands
78+
### ✅ Available Commands
79+
80+
| Command | Purpose | Status | Description |
81+
| --------------------------- | ------------------ | ----------- | ------------------------------------------------ |
82+
| **[GRANT](DCL/GRANT.md)** | Give Permissions | ✅ Complete | Grant database permissions to users and roles |
83+
| **[REVOKE](DCL/REVOKE.md)** | Remove Permissions | ✅ Complete | Remove database permissions from users and roles |
84+
85+
### 🚀 Key Features Covered
7886

79-
| Command | Purpose | Status | Description |
80-
| ---------- | ------------------ | -------------- | ------------------------------------------------ |
81-
| **GRANT** | Give Permissions | 🔄 Coming Soon | Grant database permissions to users and roles |
82-
| **REVOKE** | Remove Permissions | 🔄 Coming Soon | Remove database permissions from users and roles |
87+
- **GRANT**: Object-level, database-level, schema-level permissions, role-based access, security best practices
88+
- **REVOKE**: Permission removal, CASCADE vs RESTRICT, cleanup procedures, security maintenance
8389

8490
---
8591

8692
## 🔄 TCL Commands (Transaction Control Language)
8793

8894
TCL commands manage database transactions and data consistency.
8995

90-
### 🔄 Planned Commands
96+
### ✅ Available Commands
97+
98+
| Command | Purpose | Status | Description |
99+
| --------------------------------- | -------------- | ----------- | -------------------------------------------------- |
100+
| **[COMMIT](TCL/COMMIT.md)** | Save Changes | ✅ Complete | Make transaction changes permanent |
101+
| **[ROLLBACK](TCL/ROLLBACK.md)** | Undo Changes | ✅ Complete | Revert transaction changes |
102+
| **[SAVEPOINT](TCL/SAVEPOINT.md)** | Set Checkpoint | ✅ Complete | Create transaction savepoints for partial rollback |
103+
104+
### 🚀 Key Features Covered
91105

92-
| Command | Purpose | Status | Description |
93-
| ------------- | -------------- | -------------- | -------------------------------------------------- |
94-
| **COMMIT** | Save Changes | 🔄 Coming Soon | Make transaction changes permanent |
95-
| **ROLLBACK** | Undo Changes | 🔄 Coming Soon | Revert transaction changes |
96-
| **SAVEPOINT** | Set Checkpoint | 🔄 Coming Soon | Create transaction savepoints for partial rollback |
106+
- **COMMIT**: Transaction management, commit modes, error handling, performance optimization
107+
- **ROLLBACK**: Error recovery, rollback scenarios, performance impact, recovery patterns
108+
- **SAVEPOINT**: Partial rollback control, complex transaction management, nested operations
97109

98110
---
99111

@@ -184,14 +196,17 @@ DELETE FROM TableName WHERE ...;
184196
### Phase 2: Structure Management (Intermediate)
185197

186198
1. **[ALTER](DDL/ALTER.md)** - Modify table structures
187-
2. **[TRUNCATE](DDL/TRUNCATE.md)** - Efficiently remove data
188-
3. **[DROP](DDL/DROP.md)** - Safely remove objects
199+
2. **[DELETE](DML/DELETE.md)** - Selective data removal and safety practices
200+
3. **[TRUNCATE](DDL/TRUNCATE.md)** - Efficiently remove data
201+
4. **[DROP](DDL/DROP.md)** - Safely remove objects
189202

190203
### Phase 3: Advanced Operations (Advanced)
191204

192-
1. **DELETE** - Selective data removal (Coming Soon)
193-
2. **GRANT/REVOKE** - Security management (Coming Soon)
194-
3. **Transaction Control** - Data consistency (Coming Soon)
205+
1. **[GRANT](DCL/GRANT.md)** - Security and permission management
206+
2. **[REVOKE](DCL/REVOKE.md)** - Permission removal and cleanup
207+
3. **[COMMIT](TCL/COMMIT.md)** - Transaction commitment and error handling
208+
4. **[ROLLBACK](TCL/ROLLBACK.md)** - Transaction rollback and recovery
209+
5. **[SAVEPOINT](TCL/SAVEPOINT.md)** - Complex transaction control
195210

196211
---
197212

0 commit comments

Comments
 (0)