Assignment Part One
Assignment Part One
1: what is DBMS?
3: what is SQL?
SQL is a domain-specific language used in programming and designed for managing data
held in a relational database management system, or for stream processing in a relational
data stream management system. Wikipedia
DROP and TRUNCATE are DDL commands, whereas DELETE is a DML command.
Therefore DELETE operations can be rolled back (undone), while DROP and
TRUNCATE operations cannot be rolled back. TRUNCATE can be rolled back if
wrapped in a transaction.
Difference between drop, delete and truncate in SQL database is frequently asked
interview question. DELETE removes rows one by one depending upon WHERE
condition or delete all rows if there is no WHERE condition. TRUNCATE removes all
rows at once and DROP command removes a table or database completely from database.
Constraints are the rules enforced on the data columns of a table. These are used to limit
the type of data that can go into a table. This ensures the accuracy and reliability of the
data in the database. Constraints could be either on a column level or a table level.
DML stands for Data Manipulation Language. It is a language used for selecting,
inserting, deleting and updating data in a database. It is used to retrieve and manipulate
data in a relational database. DML performs read-only queries of data.
11: why do we use SQL constraints? Which constraints we can use while creating a
database in SQL?
SQL constraints are used to specify rules for the data in a table. Constraints are used to
limit the type of data that can go into a table. This ensures the accuracy and reliability of
the data in the table. If there is any violation between the constraint and the data action,
the action is aborted.
SQL is used in the accessing, updating, and manipulation of data in a database while
MySQL is an RDBMS that allows keeping the data that exists in a database organized.
SQL is a Structured Query Language and MySQL is a RDBMS to store, retrieve, modify
and administrate a database.