> For the complete documentation index, see [llms.txt](https://serciiit.gitbook.io/introduction-to-software-systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://serciiit.gitbook.io/introduction-to-software-systems/databases/sql-curd-operations.md).

# SQL - CURD Operations

&#x20;Structured Query Language(SQL) as we all know is the database language by the use of which we can perform certain operations on the existing database and also we can use this language to create a database. CRUD is an acronym that stands for **C**reate, **R**ead, **U**pdate, and **D**elete. These are the four most basic operations that can be performed with most traditional database systems and they are the backbone for interacting with any database.

&#x20;**DDL(Data Definition Language) :** DDL or Data Definition Language actually consists of the SQL commands that can be used to define the database schema. It simply deals with descriptions of the database schema and is used to create and modify the structure of database objects in the database.&#x20;

* **CREATE** – is used to create the database or its objects (like table, index, function, views, store procedure and triggers).
* **DROP** – is used to delete objects from the database.
* **ALTER** -is used to alter the structure of the database.
* **TRUNCATE**–is used to remove all records from a table, including all spaces allocated for the records are removed.
* **COMMENT** –is used to add comments to the data dictionary.
* **RENAME** –is used to rename an object existing in the database.

&#x20;**DML(Data Manipulation Language):** The SQL commands that deals with the manipulation of data present in the database belong to DML or Data Manipulation Language and this includes most of the SQL statements.&#x20;

* **INSERT** – is used to insert data into a table.
* **UPDATE** – is used to update existing data within a table.
* **DELETE** – is used to delete records from a database table.

**JOINS -** These are the keywords to join two or more tables based on a condition.

![Various JOINS available offered by SQL](/files/-MbbKqHl-rtKxZOxkeTH)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://serciiit.gitbook.io/introduction-to-software-systems/databases/sql-curd-operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
