When does checkpoint occur in DBMS?
A checkpoint is like a snapshot of the DBMS state. Using checkpoints, the DBMS can reduce the amount of work to be done during a restart in the event of subsequent crashes. Checkpoints are used for the recovery of the database after the system crash. Checkpoints are used in the log-based recovery system. When due to a system crash we need to restart the system then at that point we use checkpoints. So that, we don't have to perform the transactions from the very starting.
What is the Database transaction?
The sequence of operations performed which changes the consistent state of the database to another is known as the database transaction. After the completion of the transaction, either the successful completion is reflected in the system or the transaction fails and no change is reflected.
What is Online Transaction Processing (OLTP)?
Online Transaction Processing (OLTP) manages transaction-based applications which can be used for data entry, data retrieval, and data processing. OLTP makes data management simple and efficient. Unlike OLAP systems goal of OLTP systems is to serve real-time transactions.
What is SQL?
SQL stands for Structured Query Language, and it is used to communicate with the Database. This is a standard language used to perform tasks such as retrieval, updating, insertion, and deletion of data from a database.
Enlist the advantages of SQL.
Advantages of SQL are:
What is the difference between SQL and MySQL?
SQL is a standard language for retrieving and manipulating structured databases. On the contrary, MySQL is a relational database management system, like SQL Server, Oracle, or IBM DB2, that is used to manage SQL databases.
What are Constraints in SQL?
Constraints are used to specify the rules concerning data in the table. It can be applied for single or multiple fields in an SQL table during the creation of the table or after creating using the ALTER TABLE command. The constraints are:
How many SQL statements are used? Define them.
SQL statements are basically divided into three categories, DDL, DML, and DCL.
They can be defined as:
What are some common clauses used with SELECT queries in SQL?
Some common SQL clauses used in conjunction with a SELECT query are as follows:
SELECT *
FROM myDB.students
WHERE graduation_year = 2019
ORDER BY studentID DESC;
SELECT COUNT(studentId), country
FROM myDB.students
WHERE country != "INDIA"
GROUP BY country
HAVING COUNT(studentID) > 5;
Enlist some commands of DDL, DML, and DCL.
Data Definition Language (DDL) commands:
Data Manipulation Language (DML) commands:
Data Control Language (DCL) commands: