OA Study Flashcards

1
Q

What is a database application?

A

Software that helps business users interact with database systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the role of a database administrator?

A

Responsible for securing the database system against unauthorized users and enforcing procedures for user access and database system availability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does authorization in database systems entail?

A

Many database users should have limited access to specific tables, columns, or rows of a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is metadata in the context of databases?

A

Data about the database, such as column names and the number of rows in each table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is a relational database structured?

A

Stores data in tables, columns, and rows, similar to a spreadsheet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the SQL query language?

A

A standard language supported by all relational database systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the four main SQL statements?

A
  • INSERT
  • SELECT
  • UPDATE
  • DELETE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the CREATE TABLE statement do?

A

Creates a new table by specifying the table and column names, with each column assigned a data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the common data types in a database?

A
  • INT
  • DECIMAL
  • VARCHAR
  • DATE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the three phases of database design?

A
  • Analysis
  • Logical Design
  • Physical Design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is an entity in database terms?

A

A person, place, activity, or thing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a relationship in a database context?

A

A link between entities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an attribute in a database?

A

A descriptive property of an entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does logical design convert entities into?

A

Tables, keys, and columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the principle of data independence?

A

Physical design affects query processing speed but never affects the query result

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an API in the context of databases?

A

Application programming interface that simplifies the use of SQL with a general-purpose language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is a tuple in a database?

A

An ordered collection of elements enclosed in parentheses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What does a column in a table represent?

A

A named set of values, with each value corresponding to a data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What are relational operations?

A
  • Select
  • Join
  • Union
  • Aggregate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What does the SELECT statement do?

A

Retrieves data from a table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What are the five sublanguages of SQL?

A
  • Data Definition Language (DDL)
  • Data Query Language (DQL)
  • Data Manipulation Language (DML)
  • Data Control Language (DCL)
  • Data Transaction Language (DTL)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is a primary key?

A

A column, or group of columns, used to identify a row

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is a foreign key?

A

A column, or group of columns, that refer to a primary key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What does the UNIQUE constraint ensure?

A

Ensures that values in a column, or group of columns, are unique

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the BETWEEN operator used for?
Determines if a value is between two other values
26
What does the LIKE operator do?
Matches text against a pattern using wildcard characters % and _
27
What is the purpose of the ORDER BY clause?
Orders selected rows by one or more columns in ascending or descending order
28
What does the COUNT() function do?
Counts the number of rows in the set
29
What is an equijoin?
A join that compares columns of two tables with the = operator
30
What is a subquery?
A query within another SQL query
31
What is an entity-relationship model?
A high-level representation of data requirements, ignoring implementation details
32
What are the steps in the analysis phase of database design?
* Discover entities, relationships, and attributes * Determine cardinality * Distinguish strong and weak entities * Create supertype and subtype entities
33
What is a materialized view?
A view for which data is stored at all times and must be refreshed when base tables change
34
What is the purpose of the model in database design?
Capturing data requirements while ignoring implementation details
35
What does logical design convert in database design?
Entity-relationship model into tables, columns, and keys for a particular database system
36
What does physical design specify in database design?
Indexes and how tables are organized on storage media
37
What is the first step in the analysis process of database design?
Discover entities, relationships, and attributes
38
Define cardinality in the context of database relationships
Maxima and minima of relationships and attributes
39
What is the maximum in relationship cardinality?
The greatest number of instances of one entity that can relate to a single instance of another entity
40
What is the minimum in relationship cardinality?
The least number of instances of one entity that can relate to a single instance of another entity
41
What is a subtype entity?
A subset of another entity type, called the supertype entity
42
What is the identifying relationship between a supertype and subtype called?
IsA relationship
43
What is a partition of a supertype entity?
A group of mutually exclusive subtype entities
44
What notation depicts cardinality in ER diagrams?
Crow's foot notation
45
What is an intangible entity in a data model?
Documented in the data model but not tracked with data in the database
46
What is an artificial key?
A single-column primary key created by the database designer when no suitable primary key exists
47
What is functional dependence?
Dependence of one column on another
48
What does normalization aim to eliminate?
Redundancy by decomposing a table into two or more tables
49
Define Boyce-Codd normal form
An ideal normal form for tables with frequent inserts, updates, and deletes
50
What is denormalization?
Intentionally introducing redundancy by merging tables
51
List four alternative table structures supported by databases
* Heap table * Sorted table * Hash table * Table cluster
52
What is a heap table?
A table where no order is imposed on rows
53
What is the purpose of a hash table?
Assigns rows to buckets
54
What is a table scan?
A database operation that reads table blocks directly, without accessing an index
55
What is a dense index?
An index that contains an entry for every table row
56
What is a multi-level index?
Stores column values and row pointers in a hierarchy
57
What does a bitmap index consist of?
A grid of bits containing ones and zeros
58
What is a tablespace in database terminology?
A database object that maps one or more tables to a single file
59
What does physical design affect in database management?
Query performance but never affects query results
60
What is the SQL syntax to create an index?
CREATE INDEX IndexName ON TableName (Column1, Column2, ..., ColumnN)