Skip to content

Commit 4f5d5b5

Browse files
committed
docs(sql): In SQL, clauses are
components of a query that specify conditions, constraints, or instructions on how to retrieve and manipulate data. Signed-off-by: https://github.com/Someshdiwan <[email protected]>
1 parent c9f0262 commit 4f5d5b5

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
In SQL, clauses are components of a query that specify conditions, constraints, or instructions on
22
how to retrieve and manipulate data.
33

4-
Here’s an explanation of key SQL components used in your queries:
4+
Here’s an explanation of key SQL parts used in your queries:
55

66
1. SELECT Clause
77
- The SELECT statement is used to retrieve data from a database.
@@ -29,17 +29,13 @@ Here’s an explanation of key SQL components used in your queries:
2929

3030
4. Error Handling in SQL Queries
3131
- Common errors encountered in your queries:
32-
- Table not found: no such table: studetns (typo in the table name).
33-
34-
- Column not found: no such column: dept (column doesn’t exist in students).
35-
36-
- Syntax error: Incorrect placement of FROM.
32+
- Table not found: no such table: studetns (typo in the table name).
33+
- Column isn't found: no such column: dept (column doesn’t exist in students).
34+
- Syntax error: Incorrect placement of FROM.
3735

3836
5. Usage of WHERE Clause (Not Used in Your Queries, But Useful)
39-
4037
- The WHERE clause filters records based on conditions.
41-
- Example:
42-
38+
- Example:
4339
SELECT * FROM students WHERE deptno = 10;
4440

45-
Retrieves students belonging to department number 10.
41+
Retrieves students belonging to department number 10.

0 commit comments

Comments
 (0)