OA Questions Flashcards
Software that reads and writes data in a database:
DBMS
Software that helps business users interact with database systems:
Database Application
Responsible for securing the database system against unauthorized users:
Database Administrator
Determines the format of each data element and the overall database structure:
Database Designer
Develops computer programs that utilize a database:
Database Programmer
Data about the database, such as column names and the number of rows in each table:
Metadata
SQL stands for:
Structured Query Language
Database design phases:
- Analysis
- Logical Design
- Physical Design
This design phase implements database requirements in a specific database system. Converts entities, relationships, and attributes into tables, keys, and columns.
Logical Design
This design phase adds indexes and specifies how tables are organized on storage media.
Physical Design
The principle that physical design never affects query results and allows database designers to tune query performance without changes to application programs:
Data Independence
How data is organized (eg: relational/table or graph)
Data Structure
An ordered collection of elements enclosed in parentheses:
Tuple
Computes functions over multiple table rows, such as sum and count:
Aggregate
Selects all rows of two tables:
Union
Combines two tables by comparing related columns:
Join
The language which defines the structure of the database:
DDL: Data Definition Language
The language which retrieves data from the database:
DQL: Data Query Language
The language which manipulates data stored in a database:
DML: Data Manipulation Language
The language which controls database user access:
DCL: Data Control Language
The language which manages database transactions:
DTL: Data Transaction Language
Statement which adds, deletes, or modifies columns on an existing table:
ALTER TABLE
Integer type allocation size and value ranges:
TINYINT (1B)
SMALLINT (2B)
MEDIUMINT (3B)
INT/INTEGER (4B)
BIGINT (8B)
Operator which divides one numeric value by another and returns the integer remainder:
% (modulo)
A special value that represents either unknown or inapplicable data:
null
INSERT statement boilerplate:
INSERT [INTO] TableName (Column1, Column2, …)
VALUES (Value1, Value2, …);
What is the result of the following statement:
DELETE FROM Table;
What keyword/clause would increase selectivity?
All rows in the Table table are deleted. WHERE
What single statement deletes all rows from a table.
TRUNCATE
What statement selects data from one table, called the source, and inserts the data to another table, called the target?
MERGE
A primary key made of multiple columns:
Composite primary key
A rule that governs allowable values in a database:
Constraint
A constraint that ensures that values in a column, or group of columns, are unique:
UNIQUE
A constraint that specifies an expression on one or more columns of a table:
CHECK
An operator which matches text against a pattern using the two wildcard characters % and _.
LIKE
Processes values from a set of rows and returns a summary value:
Aggregate function
Clause used with GROUP BY to filter group results:
HAVING