Chapter 8 (Section 2&3) #2 Flashcards

(57 cards)

1
Q

Section 1: Database Management Systems (DBMS) Fundamentals

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

What is the formal definition of a Database Management System (DBMS)?

A

System software used for defining, creating, and manipulating a database.

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

What does the term “Data Management” encompass within a database context?

A

The process of organizing and maintaining data within a database to deliver necessary information.

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

What is a Data Dictionary?

A

A set of data containing metadata, which is defined as data about other data within a database.

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

Define “Data Modelling.”

A

The analysis and definition of data structures required in a database, which results in the creation of a data model.

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

What is a Logical Schema?

A

A data model specific to a database that remains independent of the DBMS used for its construction.

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

Define “Access Rights” in a database environment.

A

The specific permissions granted to users for accessing, modifying, or deleting data.

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

What is the Developer Interface?

A

A DBMS feature providing commands that allow developers to define, create, and manipulate the database.

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

What is Structured Query Language (SQL)?

A

The standard language used for defining and modifying data within relational databases.

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

What is the primary role of the Query Processor?

A

A DBMS feature responsible for processing and executing SQL-based queries.

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

Section 2: Addressing File-Based Limitations

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

How does a DBMS address the issue of Data Redundancy found in file-based systems?

A

By linking tables so that most data is stored only once; however, foreign keys are an exception as they must be stored in multiple tables to create links.

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

How does a DBMS handle inappropriate deletion of linked items?

A

The system flags errors if a user attempts to delete linked items, such as foreign key records, inappropriately.

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

How is “Data Inconsistency” resolved by a DBMS?

A

By storing most data items only once, updates become universally accessible across all applications, ensuring consistency.

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

What is “Data Dependency” in file-based systems?

A

A situation where changes to the data structure impact all associated applications.

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

How does a DBMS achieve “Data Independence”?

A

It decouples data from specific applications, allowing structural changes (like adding fields) to be managed with minimal impact on unrelated applications.

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

Section 3: Data Dictionary and Logical Schema

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

What metadata is typically stored in a Data Dictionary?

A

Definitions for tables, attributes, relationships between tables, indexing details, and validation rules.

[Past Exam Q&A adds:]
From exam Q&A, a data dictionary specifically contains:
• Field / attribute names
• Table name(s)
• Data types
• Primary keys // foreign keys
• Validation rules
• Relationships

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

How does a Data Dictionary enhance data integrity?

A

By ensuring the accuracy, completeness, and consistency of the data through defined rules.

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

What is the focus of a Logical Schema?

A

It represents how data is logically structured, defining what data is stored, entity relationships, and constraints without detailing physical storage.

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

What are the three main differences between a Data Dictionary and a Logical Schema?

A
  1. Definition: Metadata vs. conceptual design.
  2. Scope: Table attributes vs. table relationships.
  3. Format: Tabular structure vs. ER diagrams/textual representation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Section 4: Security and Developer Tools

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

List five security measures provided by a DBMS.

A
  1. Usernames and Passwords.
  2. Access Rights.
  3. Automated Back-ups.
  4. Data Encryption.
  5. Audit Trails.
24
Q

What are Audit Trails used for?

A

To log user actions for monitoring data access and modifications.

25
Why might a developer use the Developer Interface instead of visual query tools?
To write complex SQL queries for sophisticated interactions, create/modify objects, design reports, or build data input forms.
26
Section 5: Query Processor Architecture
27
What is the function of the DDL Interpreter?
It interprets Data Definition Language statements and records them in the data dictionary.
28
What is the function of the DML Compiler?
It compiles Data Manipulation Language statements into executable instructions and optimizes them for efficiency.
29
What is the role of the Query Evaluation Engine?
It executes the instructions that have been compiled by the DML compiler.
30
Section 6: Data Definition Language (DDL) Commands
31
What is the general purpose of Data Definition Language (DDL)?
A language used to create, modify, and delete the structures of a database.
32
Describe the DDL command: CREATE DATABASE.
Used to create a completely new database instance.
33
Describe the DDL command: CREATE TABLE.
Defines a new table structure, including its columns and data types, within a database.
34
Describe the DDL command: ALTER TABLE.
Modifies an existing table structure, such as adding or dropping columns.
35
Describe the DDL command: PRIMARY KEY.
Sets a column or combination of columns as the unique identifier for every record in a table.
36
Describe the DDL command: FOREIGN KEY ... REFERENCES.
Adds a key to a table that links to a primary key in another table to enforce relationships.
37
Section 7: SQL Data Types
38
Define the CHARACTER data type.
Used for fixed-length text.
39
Define the VARCHAR(n) data type.
Used for variable-length text up to a maximum of 'n' characters.
40
Define the BOOLEAN data type in SQL.
Represents True or False values, often stored as 1 and 0.
41
Define the INTEGER and REAL data types.
INTEGER is for whole numbers; REAL is for numbers with decimal places.
42
What are the standard SQL formats for DATE and TIME?
DATE uses YYYY-MM-DD; TIME uses HH:MM:SS.
43
Section 8: Data Manipulation Language (DML) - Querying
44
What is the general purpose of Data Manipulation Language (DML)?
A language used for adding, modifying, deleting, and retrieving the actual data stored within a database.
45
Describe the DML command: SELECT ... FROM.
Used to retrieve specific data/columns from one or more database tables.
46
Describe the DML command: WHERE.
Filters the rows returned by a query based on a specified condition.
47
Describe the DML command: ORDER BY.
Sorts the query results by a specific column in either alphabetical or numerical order.
48
Describe the DML command: GROUP BY.
Groups rows that have the same values into summary rows based on one or more columns.
49
Describe the DML command: INNER JOIN.
Combines rows from multiple tables specifically when a matching join condition is met between them.
50
Describe the DML aggregate function: SUM.
Calculates the total sum of all values within a numeric column.
51
Describe the DML aggregate function: COUNT.
Returns the number of rows where the specified column is not NULL.
52
Describe the DML aggregate function: AVG.
Calculates the mathematical average of a numeric column.
53
Section 9: Data Manipulation Language (DML) - Maintenance
54
Describe the DML command: INSERT INTO.
Adds one or more new rows of data into a specific table.
55
Describe the DML command: DELETE FROM.
Removes specific rows from a table, usually based on a condition.
56
Describe the DML command: UPDATE.
Edits or modifies existing data within specific rows of a table.
57
What is an SQL Script?
A file containing a sequence of SQL commands used to perform tasks, which can be saved and reused.