A programming language called SQL (Structured Query Language) was created specifically for managing and modifying relational databases. It offers a common syntax for entering queries and making changes to data in databases. SQL was the first commercial language introduced for E.F Codd’s Relational model of a database.
Note:
There are numerous commands and statements in SQL that can be used to complete various tasks. The most typical SQL statements include the following:
Command | Functioning |
Create | Used to create new tables, indexes, views, or other database objects. |
Drop | Used to delete tables, indexes, views, or other database objects. |
Alter | Used to modify the structure of existing tables, indexes, or other database objects. |
Truncate | Used to remove all data from a table. |
Command | Functioning |
Insert | Used to add new records to a table. |
Update | Used to modify existing records in a table. |
Delete | Used to delete records from a table. |
Command | Functioning |
Commit | Used to save changes made to the database. |
Rollback | Used to undo changes made to the database since the last COMMIT. |
Savepoint | Used to roll the transaction back to a certain point without rolling back the entire transaction. |
Any database user’s authority can be granted and revoked with the help of DCL commands.
Command | Functioning |
Grant | Used to give users or groups access to database objects. |
Revoke | Used to revoke previously granted access to database objects. |
The data query language is used to retrieve data from tables based on simple conditions.
Command | Functioning |
Select | Used to retrieve data from one or more tables in a database. |
Note: also read about Fifth Normal Form (5NF)
Please follow me to read my latest post on programming and technology if you like my post.
https://www.instagram.com/coderz.py/
https://www.facebook.com/coderz.py
Staying up to the mark is what defines me. Hi all! I’m Rabecca Fatima a keen learner, great enthusiast, ready to take new challenges as stepping stones towards flying colors.
Find the length of the longest absolute path to a file within the abstracted file…
You manage an e-commerce website and need to keep track of the last N order…
You are given a stream of elements that is too large to fit into memory.…
The formula for the area of a circle is given by πr². Use the Monte…
Given an integer k and a string s, write a function to determine the length…
There is a staircase with N steps, and you can ascend either 1 step or…