Skip to content

Commit c876161

Browse files
committed
added content to readme.md
1 parent 17eb384 commit c876161

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,29 @@ There are many relational operators that are used to perform actions on relation
198198
3. Difference operator provide the output by taking two relations and producing the difference of rows from first that don'\t exist in second.
199199
4. Cartesian product is done on two relations. It acts as a cross join operator.
200200

201+
## Q. What is the difference between SQL and NoSQL databases?
202+
203+
SQL databases are relational databases that use structured query language (SQL) for defining and manipulating data. They are based on a fixed schema and are best for complex queries and transactions. NoSQL databases are non-relational and can handle unstructured data, offering flexibility in schema design. They are designed for scalability and are often used for big data applications.
204+
205+
**Examples:**
206+
207+
- SQL: MySQL, PostgreSQL
208+
209+
- NoSQL: MongoDB, Cassandra
210+
211+
## Q. What are the main components of a SQL query?
212+
213+
A SQL query typically consists of clauses such as SELECT (to specify columns), FROM (to specify tables), WHERE (to filter rows), GROUP BY (to group data), HAVING (to filter groups), and ORDER BY (to sort results). These components work together to retrieve and manipulate data from a database.
214+
215+
**Example:**
216+
217+
```sql
218+
SELECT name, age
219+
FROM users
220+
WHERE age > 18
221+
ORDER BY name;
222+
```
223+
201224
<div align="right">
202225
<b><a href="#table-of-contents">↥ back to top</a></b>
203226
</div>
@@ -2189,4 +2212,4 @@ In SQL Server, Buffer Cache and Log Cache are essential components of the SQL Se
21892212

21902213
<div align="right">
21912214
<b><a href="#table-of-contents">↥ back to top</a></b>
2192-
</div>
2215+
</div>

0 commit comments

Comments
 (0)