Unit 3 - Database - Short Note
Unit 3 - Database - Short Note
- Attributes are the set of properties to describe the instances of the entity.
- A record is a row or a tuple in the table. It contains a single data value in
each column.
- SQL (Structured Query Language) is a standard language for accessing
and manipulating a database.
- SQL is a special-purpose query language meant for interacting with
relational databases such as Microsoft Access.
- Understanding how SQL works can help create better queries and make it
easier to understand how to fix a query that is returning unwanted results.
- SQL consists of a number of commands with further options to allow you to
carry out your operations with a database.
- Based on their purposes, three categories of SQL commands are presented
below.
-
1. Data Definition Language (DDL): DDL contains commands that allow
you to create or modify tables and establish relationship between tables
in your database structure.
2. Data Manipulation Language (DML): DML contains commands that
are used to manage the database by performing operations such as
inserting, updating, deleting, and navigating through data.
Grade 12 -Unit 3 –Database Management (Short Note)
3. Data Query Language (DQL): is used for querying or selecting all or
subsets of data from a database.
[Column3 datatype],
[Column4 datatype]…)
INSERT command
UPDATE command
- The UPDATE command does not add new records to a table, nor does it
remove records. It simply updates existing records in the table.
- The UPDATE command is used to change a value of one or more fields in
an existing table row or number of rows.
- The general syntax of an UPDATE command is given below.
UPDATE table_name
DELETE command