SQL
SQL
A company like Amazon uses SQL to manage and analyze customer data, orders, and inventory. SQL
helps them:
- Enforcing data types and constraints (e.g., primary keys, foreign keys)
3. Role of DBMS
A *database* is a collection of related tables, while a *table* is a specific collection of data organized
into rows and columns.
Analogy: A database is like a filing cabinet, and a table is like a single file folder within the cabinet.
4. *ORDER BY*: Sorts the result set in ascending or descending order (e.g., `ORDER BY name ASC`).
These clauses work together to retrieve and manipulate data in a relational database.