Zybook Week 1 Flashcards

1
Q

what is a database?

A

is a collection of data in a structured format. In principle, databases can be stored on paper or even clay tablets. In practice, however, modern databases are invariably stored on computers. The database structure ensures that similar data is stored in a standardized manner.

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

Database system, database management system or DBMS

A

is software that reads and writes data in a database. Database systems ensure data is secure, internally consistent, and available at all times. These functions are challenging for large databases with many users, so database systems are complex.

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

Query and Query Language

A

A query is a request to retrieve or change data in a database. A query language is a specialized programming language, designed specifically for database systems. Query languages read and write data efficiently, and differ significantly from general-purpose languages such as Python, Java, and C++.

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

Database Application

A

software that helps business users interact with database systems. Many databases are complex, and most users are not familiar with query languages. Consequently, direct database access is usually not feasible. Instead, programmers write applications to simplify the user experience and ensure data access is efficient and secure.

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

Database Adminstrator

A

responsible for securing the database system against unauthorized users. A database administrator enforces procedures for user access and database system availability.

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

Database designer

A

determines the format of each data element and the overall database structure. Database designers must balance several priorities, including storage, response time, and support for rules that govern the data. Since these priorities often conflict, database design is technically challenging.

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

Database programmer

A

develops computer programs that utilize a database. Database programmers write applications that combine database query languages and general-purpose programming languages. Query languages and general-purpose languages have significant differences, so database programming is a specialized challenge.

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

Database User

A

is a consumer of data in a database. Database users request, update, or use stored data to generate reports or information. Database users usually access the database via applications but can also submit queries directly to the database system.

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

What are the specific requirements of large, complex databases?

A

Performance, authorization, security, rules, recovery.

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

What is a transaction?

A

a group of queries that must be either completed or rejected as a whole. Execution of some, but not all, queries results in inconsistent or incorrect data

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

When processing transactions, databases must:

A

Ensure transactions are processed completely, or not at all.
Prevent conflicts between concurrent transactions
Ensure transaction results are never lost.

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

What is the architecture of a database system?

A

a database system describes the internal components and the relationships between components.

Most have the following components: query processor, storage manager, transaction manager, log and a catalog or data dictionary.

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

What is a storage manager?

A

translates the query processor instructions into low-level file-system commands that modify or retrieve data. Database sizes range from megabytes to many terabytes, so the storage manager uses indexes to quickly locate data.

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

What is a query processor?

A

interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application. The query processor performs query optimization to ensure the most efficient instructions are executed on the data.

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

What is a transaction manager?

A

ensures transactions are properly executed. The transaction manager prevents conflicts between concurrent transactions. The transaction manager also restores the database to a consistent state in the event of a transaction or system failure.

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

What is the log?

A

a file containing a complete record of all inserts, updates, and deletes processed by the database. The transaction manager writes log records before applying changes to the database. In the event of a failure, the transaction manager uses log records to restore the database.

13
Q

What is the catalog?

A

also known as a data dictionary, is a directory of tables, columns, indexes, and other database objects. Other components use catalog information to process and execute queries.

13
Q

What is a relational database?

A

stores data in tables, columns, and rows, similar to a spreadsheet. All data in a column has the same format. All data in a row represents a single object, such as a person, place, product, or activity.

14
Q

What is open source?

A

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

14
Q

What is SQL?

A

stands for Structured Query Language and includes statements that read and write data, create and delete tables, and administer the database system.

14
Q

What is NoSQL?

A

The newer non-relational systems are called NoSQL, for ‘not only SQL’, and are optimized for big data

15
Q

What is database design?

A

a specification of database objects such as tables, columns, data types, and indexes. Database design also refers to the process used to develop the specification.

For small, simple databases, the database design process can be informal and unstructured. For large, complex databases, the process has three phases:

Analysis
Logical design
Physical design

16
Q

What is the analysis phase of database design?

A

specifies database requirements without regard to a specific database system. Requirements are represented as entities, relationships, and attributes. An entity is a person, place, activity, or thing. A relationship is a link between entities, and an attribute is a descriptive property of an entity.

17
Q

What are ER Diagrams, and how are they depicted?

A

Rectangles represent entities. Entity names appear at the top of rectangles.

Lines between rectangles represent relationships.

Text inside rectangles and below entity names represent attributes.

18
Q

What is the logical design phase?

A

implements database requirements in a specific database system. For relational database systems, logical design converts entities, relationships, and attributes into tables, keys, and columns

19
Q

What is a key?

A

a column used to identify individual rows of a table. Tables, keys, and columns are specified in SQL with CREATE TABLE statements.

20
Q

What is a table diagram?

A

Rectangles represent tables. Table names appear at the top of rectangles.

Text within rectangles and below table names represents columns.

Solid bullets (●) indicate key columns.

Empty bullets (○) and arrows indicate columns that refer to keys.

The logical design, as specified in SQL and depicted in a table diagram, is called a database schema

21
Q

What is the physical design phase?

A

phase adds indexes and specifies how tables are organized on storage media. Ex: Rows of a table may be sorted on the values of a column and stored in sort order. Physical design is specified with SQL statements such as CREATE INDEX and, like logical design, is specific to a database system

22
Q

What is data independence?

A

The principle that physical design never affects query results is called

23
Q

What is a database model?

A

A conceptual framework for database software.

24
Q

What is the relational model?

A

A database model based on mathematical principles, with 3 parts:

  1. A data structure that prescribes how data is organized.
  2. Operations that manipulate data structures.
  3. Rules that govern valid relational data.
25
Q

What is a set?

A

A collection of values with no inherent order.

26
Q

What three mathematical concepts is the relational data structure based on?

A

A domain is a named set of possible database values, such as integers, dictionary words, or logical values TRUE and FALSE.

A tuple is a finite sequence of values, each drawn from a fixed domain. Ex: (3, apple, TRUE) is a tuple drawn from domains (Integers, DictionaryWords, LogicalValues). Each tuple position is called an attribute, which has a name that is unique within the relation.

A relation is a named set of tuples, all drawn from the same sequence of domains. Ex: The relation below is named Grocery and contains three tuples.

27
Q

What is relational alegebra?

A

The relational model stipulates a set of operations on tables.

28
Q

What are relational rules or integrity rules?

A

The relational model stipulates a set of operations on tables

29
Q

What are structural rules

A

relational rules that govern data in every relational database. The relational model stipulates a number of structural rules, such as:

Unique primary key — all tables should have a column with no repeated values, called the primary key and used to identify individual rows.
Unique column names — different columns of the same table must have different names.
No duplicate rows — no two rows of the same table may have identical values in all columns.

30
Q

What are business rules?

A

Unique column values — in a particular column, values may not be repeated.
No missing values — in a particular column, all rows must have known values.
Delete cascade — when a row is deleted, automatically delete all related rows.

31
Q
A