DBMS 1
DBMS 1
Ans:Structured query language (SQL) is a popular query language that is frequently used in all
types of applications to store data. Oracle,formerly known as relational software became the
first vendor to commercialize SQL relational database.Data analysts and developers learn and
use SQL because it integrates well with different programming languages.SQL was invented in
the 1970s based on the relational data model. It was initially known as the structured English
query language (SEQUEL).
Ans: A DBMS provides necessary database languages that allow users to express database
updates and queries, which are requests for data. There are different examples of database
languages available, including SQL, which is the standard programming language for many
databases.
DDL stands for Data Definition Language. It is used to define database structure or pattern.It is
used to create schema, tables, indexes, constraints, etc. in the database.Using the DDL
statements, you can create the skeleton of the database.Data definition language is used to
store the information of metadata like the number of tables and schemas, their names, indexes,
columns in each table, constraints, etc.
DML stands for Data Manipulation Language. It is used for accessing and manipulating data in a
database. It handles user requests.Here are some tasks that come under DML:
DCL stands for Data Control Language. It is used to retrieve the stored or saved data.The DCL
execution is transactional. It also has rollback parameters.Here are some tasks that come under
DCL:
TCL is used to run the changes made by the DML statement. TCL can be grouped into a logical
transaction.Here are some tasks that come under TCL:
Rollback: It is used to restore the database to original since the last Commit.
Ans:SQL supports various data types that help define the kind of data that can be stored in a
table column. Here are some commonly used data types in SQL:
FLOAT or REAL:
VARCHAR:
TIME:
BLOB (Binary Large Object): Stores binary data like images or documents.
Example: profile_picture BLOB