DAF Flashcards
Database Administration Fundamentals (215 cards)
database (db)
- a structure or organized collection of data, categories of information and the relationship between these categories, typically stored in electronic format.
- Allows you to input, organize, and retrieve data quickly.
- minimize mistakes and redundancy
query
an inquiry into the database that returns information back from the database
database servers
contain databases so they can be accessed by multiple users and provide a high level of performance
DBMS - database management system
a collection of programs that indirectly enables you to enter, organize, and select data in a database
3 types of databases
- Flat-type databases
- Hierarchical databases
- Relational databases
Flat-type databases
- simplistic in design (two-dimensional tables - rows & columns)
- most commonly used in plain-text formats
- purpose is to hold one record per line
- they make access, performance, and queries very quick
field refers to…
a column in a table taht is designed to maintain specific informatio;n about every record in the table
-vertical entry
a record refers to…
a row
- each individual entry that exists in a table
- horizontal entity
hierarchical database
- similar to a tree structure
- each “parent” table can have multiple “children”
- each child can have only one parent
relational database
- most important
- data is stored in tables
- new information is automatically added into the table without the need to reorganize the table itself
- can gave multiple parents
Database objects are inherently divided into two broad categories…
storage and programmability
Definition of constraints
limitations or rules placed on a field or column to ensure that data that is considered invalid is not entereed
types of constraints
- unique
- check
- default
- not null
- primary key
- foreign key
unique constraint
allows the database administer to specifically identify which column should not contain duplicate values
check constraint
allows the administrator to limit the types of data a usere can insert into the database
default constraint
is used to insert a default value into a column if no other value is specified
not null constraint
ensures that data is entered into a cell - cell cannot be blank
primary key constraint
- defines each record -uniquely identifies each record in a database table
- cannot be duplicated
- must contain unique values and cannot contain NULL values
- all attributes are functionally dependent of
- each table has a primary key, and only one primary key
foreign key constraint
-points to a primary key in another table
DML stands for
Data Manipulation Language
Data Manipulation Language
is the language element that allows you to use the core statements INSERT, UPDATE, DELETE, MERGE, SELECT
SELECT statement
- selects data from a database
- retrieves rows from the database and enables the selection of one or many rows or columns from on or many tables
INSERT statement
adds one or more new rows to a table or a view
UPDATE statement
- updates data
- changes existing data in one or more columns in table or view