D426 Flashcards
Database Application
Software that helps business users interact with database systems.
Database Administrator
Secures the database and gives users access.
Query Processor
Interprets queries, creates a plan to modify the database or retrieve data.
Storage Manager
Translates the query processor instructions into system commands that modify or retrieve data.
Transaction Manager
Ensures transactions are properly executed. Prevents conflicts between transaction. Restores the database after a system failure.
Analysis Phase
Specifies database requirement. Creating entities, relationships and attributes.
Relationship
A link between entities.
Entity
Person, place, activity or thing.
Attribute
Describes an entity.
Logical design
Implements database requirements. Converts entities, relationships and attributes into tables, keys and columns.
Physical design
Adds indexes and specifies how tables are organized.
API
Application programming interface. Used to simplify the use of SQL with a general-purpose language.
MySQL Command-Line Client
A text interface used to return errors when SQL code is syntactically incorrect.
Tuple
A collection of elements enclosed in parentheses.
Table
Has a name, fixed tuple of columns and a varying set of rows.
Column
Has a name and a data type
Row
An unnamed tuple of values. Each value corresponds to a column and belongs to that columns data type.
Synonym for: Table
File, Relation
Synonym for: Row
Record, Tuple
Synonym for: Column
Field, Attribute
Business rule
Rules based on business policy and specific to a particular database.
Literals
Explicit values surrounded by quotation marks.
Keywords
Words with special meaning. ex SELECT, FROM, WHERE
Identifiers
Objects from the database like tables and columns.
Data Definition Language(DDL)
Defines the database schema. (CREATE, DROP, ALTER, TRUNCATE)
Data Manipulation Language(DML)
Commands that manipulate the data ( INSERT, UPDATE, DELETE, LOCK)
Data Query Language
Retrieves Data from the database (SELECT)
Data Control Language
Controls database user access.
Data Transaction Language
Manages database transactions
Table
Fixed sequence of columns and a set of rows
Column
Has a name and a data type
Row
An unnamed sequence of values
Cell
A single column of a single row
Data independence
Also called rule 7: Allows database admins to improve query performance or organizing the data without affecting query results.
DROP TABLE
Deletes all the tables rows from the database
Data type
A named set of values from which a column is drawn
TINYINT
1 byte -128 to 127
SMALLINT
2 bytes +- 32768
MEDIUMINT
3 bytes +-8388608
INT
4 bytes +-2147483647