D426 v3

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/502

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

503 Terms

1
New cards

What is data in the context of databases?

Numeric, textual, visual, or audio information that describes real-world systems.

2
New cards

Why is data collected and processed?

To aid in tasks like forecasting weather, analyzing financial investments, and tracking the global spread of pandemics.

3
New cards

List three important ways data can vary.

Scope (amount of data), Format (numbers, text, images, audio, video), Access (private or public).

4
New cards

Give an example of data scope.

A small business might track a few thousand items; a large commerce website might track billions.

5
New cards

Give an example of data format.

A phone's proximity sensor generates raw numbers; a satellite captures images.

6
New cards

Give an example of data access.

A retail company uses private customer data; a government may be required to share certain data sets.

7
New cards

How was most data recorded historically?

Mostly analog, encoded as continuous variations on various physical media (e.g., vinyl disks, film).

8
New cards

How is most data recorded today?

Mostly digital, encoded as zeros and ones on electronic and magnetic media.

9
New cards

What did the shift from analog to digital data facilitate?

The rise of large computer databases.

10
New cards

Name five websites that offer public data sets.

data.gov, cancer.gov/research, kaggle.com, data.nasa.gov, opendata.cityofnewyork.us

11
New cards

What is a database?

A collection of data in a structured format.

12
New cards

Where are modern databases usually stored?

On computers.

13
New cards

Why is database structure important?

It ensures similar data is stored in a standardized manner.

14
New cards

Why do modern databases require sophisticated software tools?

They may contain trillions of bytes of data and support thousands of simultaneous users.

15
New cards

What is a database system (DBMS)?

Software that reads and writes data in a database, ensuring data is secure, internally consistent, and available at all times.

16
New cards

What is a query?

A request to retrieve or change data in a database, written in a specialized query language.

17
New cards

What is a query language?

A specialized programming language designed specifically for database systems.

18
New cards

What is a database application?

Software that helps business users interact with database systems and simplifies the user experience.

19
New cards

Why are database applications necessary?

Most users are not familiar with query languages and direct database access is usually not feasible.

20
New cards

How is database software organized?

In layers: applications interact with a query language, which interacts with the database system.

21
New cards

What is an information management system?

A software application that manages corporate data for a specific business function, usually includes a database system and other components.

22
New cards

How is the term "database" used?

Sometimes refers to the data itself, sometimes to the database system (DBMS); the meaning is usually clear from context.

23
New cards

List four main database roles.

Database administrator, database designer, database programmer, database user.

24
New cards

What does a database administrator do?

Secures the database system and enforces procedures for user access and database system availability.

25
New cards

What does a database designer do?

Determines the format of each data element and the overall database structure, balancing several priorities.

26
New cards

What does a database programmer do?

Develops programs that utilize a database, combining database query languages with general-purpose programming languages.

27
New cards

What does a database user do?

Requests, updates, or uses stored data to generate reports or information.

28
New cards

When might one person have multiple database roles?

In simple databases with a limited amount of data and few users.

29
New cards

When are database roles usually separated?

In large, complex databases.

30
New cards

When can a small database be managed with a text file or spreadsheet?

When it is shared by only one or two users.

31
New cards

Why are text files and spreadsheets inadequate for large complex databases?

They lack performance, authorization, security, rules enforcement, and recovery features required by large, multi-user databases.

32
New cards

List five special requirements for large complex databases.

Performance, Authorization, Security, Rules, Recovery.

33
New cards

Why does query response time degrade in large databases?

Because many users and applications may access large databases simultaneously.

34
New cards

How do database systems maintain fast response times?

By structuring data properly on storage media and processing queries efficiently.

35
New cards

What is authorization in a database system?

Limiting user access to specific tables, columns, or rows.

36
New cards

How is security enforced in database systems?

By restricting access, encrypting data, and protecting against hackers.

37
New cards

What are rules in the context of a database system?

Requirements to keep data consistent with structural and business policies.

38
New cards

Give an example of a business rule in a database.

A course number in student registration must exist in the course catalog.

39
New cards

Why is recovery important in databases?

Computers, database systems, and transactions can fail; systems must restore the database to a consistent state without loss of data.

40
New cards

What is a transaction?

A group of queries that must be either all completed or all rejected as a whole.

41
New cards

Give an example of a transaction.

A debit-credit transaction transferring funds from one bank account to another.

42
New cards

Why must transactions be all-or-nothing?

Partial execution can result in inconsistent or incorrect data.

43
New cards

List three requirements for transaction management.

Transactions must be processed completely or not at all; prevent conflicts between concurrent transactions; ensure transaction results are never lost.

44
New cards

What is the architecture of a database system?

The internal components of a database system and the relationships between those components.

45
New cards

What are the main components of most database systems?

Query processor, storage manager, transaction manager, log, catalog (data dictionary).

46
New cards

What does the query processor do?

Interprets queries, creates a plan to modify or retrieve data, returns query results, and performs query optimization.

47
New cards

What does the storage manager do?

Translates query processor instructions into low-level file-system commands that modify or retrieve data, and uses indexes to quickly locate data.

48
New cards

What does the transaction manager do?

Ensures transactions are properly executed, prevents conflicts between concurrent transactions, and restores database consistency after failures.

49
New cards

What is the log in a database system?

A file containing a complete record of all inserts, updates, and deletes processed by the database.

50
New cards

What is the catalog or data dictionary?

A directory of tables, columns, indexes, and other database objects; used by other components to process and execute queries.

51
New cards

Does the query processor have direct access to the database data on storage media?

No, all access to the database data must go through the storage manager.

52
New cards

Can the storage manager retrieve data without query optimization?

Yes, but query optimization ensures the most efficient instructions are sent to the storage manager.

53
New cards

Does the catalog record queries processed by the database system?

No, the catalog describes database objects; processed queries are recorded in the log.

54
New cards

What is needed to restore the database after a system failure during processing?

Both the transaction manager and the log.

55
New cards

What is metadata?

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

56
New cards

What is a relational database?

A database that stores data in tables, columns, and rows, similar to a spreadsheet.

57
New cards

What is SQL?

Structured Query Language

58
New cards

What are relational systems ideal for?

Databases that require an accurate record of every transaction, such as banking, airline reservation systems, and student records.

59
New cards

What is big data?

Massive volumes of online data, often with poorly structured or missing information.

60
New cards

What are NoSQL databases?

Non-relational databases optimized for big data ("not only SQL").

61
New cards

What is open source software?

Software that anyone can inspect, copy, and modify with no licensing fee.

62
New cards

Give examples of leading database products.

Oracle Database, MySQL, SQL Server, PostgreSQL, MongoDB.

63
New cards

What is a query in a database system?

A command for a database that typically inserts new data, retrieves data, updates data, or deletes data from a database.

64
New cards

What is a query language?

A computer programming language for writing database queries.

65
New cards

Which query does NOT change the database contents?

SELECT (it only retrieves data; insert, update, and delete change data).

66
New cards

Can a SELECT query return nothing?

Yes, if no data matches the query condition.

67
New cards

Are insert select, update, and delete the only necessary commands to interact with a database system?

No, other commands are needed to create and delete databases, tables, columns, and database objects.

68
New cards

Can an update query modify data that isn't in the database?

No, data must be in the database for an update query to make an update.

69
New cards

What is an SQL statement?

A complete, executable database command that performs operations like retrieving or editing data, creating a database, defining transactions, or authorizing users.

70
New cards

What does the SQL CREATE TABLE statement do?

Creates a new table by specifying the table and column names and assigning data types to each column.

71
New cards

Name examples of SQL data types.

INT (integer), DECIMAL (fractional numeric), VARCHAR (text), DATE (year, month, day).

72
New cards

What does VARCHAR(10) mean?

A variable-length character string with a maximum of 10 characters.

73
New cards

What does DECIMAL(10, 3) mean?

A decimal number with up to 10 significant digits, three of which are after the decimal point.

74
New cards

What is database design?

A specification of database objects such as tables, columns, data types, and indexes, or the process used to develop that specification.

75
New cards

What are the three phases of database design for large complex databases?

1. Conceptual design 2. Logical design 3. Physical design

76
New cards

What is the conceptual design phase?

Specifies database requirements without regard to a specific database system.

77
New cards

How are requirements represented in conceptual design?

As entities, relationships, and attributes.

78
New cards

What is an entity?

A person, place, activity, or thing.

79
New cards

What is a relationship in database design?

A link between entities.

80
New cards

What is an attribute in database design?

A descriptive property of an entity.

81
New cards

What is an ER diagram?

An entity-relationship diagram that depicts entities, relationships, and attributes visually.

82
New cards

How are entities shown in ER diagrams?

Rectangles with round corners with the entity name at the top.

83
New cards

How are relationships shown in ER diagrams?

Lines between rectangles.

84
New cards

How are attributes shown in ER diagrams?

Text inside rectangles and below entity names.

85
New cards

What is logical design?

Implements database requirements in a specific database system by converting entities, relationships, and attributes into tables, keys, and columns.

86
New cards

What is a key in a relational database?

A column used to identify individual rows of a table.

87
New cards

What is a table diagram?

A detailed diagram similar to an ER diagram, showing tables as rectangles with square corners, columns inside rectangles, key columns marked with bullets, and arrows for foreign keys.

88
New cards

What is a database schema?

The logical design as specified in SQL and depicted in a table diagram.

89
New cards

What is physical design?

Adds indexes and specifies how tables are organized on storage media.

90
New cards

Does physical design affect query results in relational databases?

No, physical design only affects performance; logical design affects query results.

91
New cards

What is data independence?

The principle that changes to physical design never affect query results.

92
New cards

Why is data independence important?

It allows designers to tune query performance without changing application programs.

93
New cards

Can relational database applications be programmed before physical design is complete?

Yes, due to data independence.

94
New cards

Does SQL have important programming features like object orientation?

No, most SQL implementations are not object-oriented.

95
New cards

How are database programs typically written?

By combining SQL with a general-purpose programming language like C++, Java, or Python.

96
New cards

What is an API in database programming?

An application programming interface; a library that links a host programming language to a database.

97
New cards

Give an example of a database API.

JDBC (Java Database Connectivity) for Java.

98
New cards

Why are APIs used in database programming?

They simplify the use of SQL with a general-purpose language and handle connection, query execution, and result retrieval.

99
New cards

Do all programming languages use the same database API?

No, each programming language supports different APIs.

100
New cards

Do major languages support multiple database APIs?

Yes, languages like C++ and Java support several APIs.