CH 7DATABASE CONCEPTS 240927 195716
CH 7DATABASE CONCEPTS 240927 195716
REFERENTIAL INTEGRITY:
A referential integrity is a system of rules that database management system uses to ensure that relationships
between records in related tables are valid, and that users don't accidently delete or change related data.
STRUCTURED QUERY LANGUAGE:
SQL is a query language used by major relational DBMSs such as Mysql, Oracle, SQL server etc. SQL statements are
not case sensitive. SQL is not platform dependent and can be used on all types of devices.
CLASSIFICATION OF SQL STATEMENTS:
Structured Query Language Provides many different types of commands used for different purposes. SQL commands
can be mainly divided into following categories:
1. DDL (Data Definition Language): Commands that allow you to perform task related to data definition e.g.
Creating, Altering and Dropping Granting and Revoking Privileges and Roles Maintenance commands
2. DML (Data Manipulation Language): Commands that allow you to perform data manipulation e.g.
• Retrieving (selecting)
• Insertion
• Deletion
• Modification
3. TCL (Transaction Control Language): Commands that allow you to manage and control the transactions. A
transaction is one complete unit of work involving many steps e.g.
• Making changes to database, permanent
XII COMPUTER SCIENCE
SQL CONSTRAINTS:
Note: A constraint can be applied to a column to a group of columns. When it is applied to a group of columns, it is
called table constraint.
XII COMPUTER SCIENCE
XII COMPUTER SCIENCE