Database Na Gaya Nung Nakaraan Flashcards
It is a collection of data stored in a format that can easily be accessed.
Database
It is a collection of programs which enable its users to access database,
manipulate data, reporting and representation of data.
Database Management System (DBMS)
It defines the logical design and
structure of a database and defines how data will be stored, accessed and updated in a database management system.
Database Model
4 Database Models
- Hierarchical Model
- Network Model
- Entity-Relationship Model
- Relational Model
The data is organized into tree-like structure.
Hierarchical Model
An extension of the Hierarchical model. In this model data is organized more like a graph, and are allowed to have more than one parent node.
Network Model
In this database model, relationships are created by dividing object of interest into entity and its characteristics into attributes.
Entity-Relationship Model
In this model, data is organized in
two-dimensional tables and the relationship is maintained by storing a common field.
Relational Model
It defines how the data is organized and how the relations among them are associated.
Database Schema
It is a vertical entity in a table that
contains all information associated with a specific field in a table.
Column
It simply deals with descriptions of the database schema and is used to create and modify the structure of database objects in the database.
DDL (DATA DEFINITION LANGUAGE)
Creates a new table, a view of a table, or other object in the database.
Create
Modifies an existing database object, such as a table.
Alter
Deletes an entire table, a view of a table or other objects in the database.
Drop
The SQL commands that deals with the manipulation of data present in the database.
DML (DATA MANIPULATION LANGUAGE)
Retrieves certain records from one or more tables
Select
Creates a records
Insert
Modifies records
Update
Delete record
Delete
It mainly deals with the rights, permissions and other controls of the database system.
DCL (DATA CONTROL
LANGUAGE)
Gives a privilege to user.
Grant
Takes back privileges granted from user.
Revoke
It deals with the transaction within the database.
TCL (TRANSACTION CONTROL LANGUAGE)
Commit a transaction
Commit
rollbacks a transaction in case of any error occurs.
Rollback
Sets a savepoint within a transaction.
Savepoint
It specify characteristics for the transaction.
Set Transaction
It is an attribute that specifies the type of data of any object.
Data Type
There are no duplicate rows in a table.
Entity Integrity
Enforces valid entries for a given column by restricting the type, the format, or the range of values.
Domain Integrity
Rows cannot be deleted, which are used by other records.
Referential Integrity
Enforces some specific business rules that do not fall into entity, domain of referential integrity.
User-Defined Integrity
What the purpose of the query is.
Action
Which table or tables the action will be performed on.
Location
What columns rows and data will be affected.
Where