Databases and SQL 2

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

flashcard set

Earn XP

Description and Tags

How databases are ran and how SQL works

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards
  • database administrator

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

2
New cards
  • database designer

  • 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.

3
New cards
  • database programmer

  • 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.

4
New cards
  • database user

  • 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.

5
New cards
  • query processor

  • 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.

6
New cards
  • storage manager

  • 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.

7
New cards
  • transaction manager

  • 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.

8
New cards
  • log

  • 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.

9
New cards
  • catalog

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.

10
New cards

Select

  • selects a subset of (or all) rows of a table.

11
New cards
  • Project

  • selects one or more columns of a table.

12
New cards
  • Product

  • lists all combinations of rows of two tables.

13
New cards

Join

  • combines two tables by comparing related columns.

14
New cards

Union

  • selects all rows of two tables.

15
New cards

Intersect

  • selects rows common to two tables.

16
New cards
  • Difference

  • selects rows that appear in one table but not another.

17
New cards

Rename

  • changes a table name.

18
New cards
  • Aggregate

  • computes functions over multiple table rows, such as sum and count.

19
New cards
  • Data Definition Language (DDL)

  • defines the structure of the database.

20
New cards
  • Data Query Language (DQL)

  • retrieves data from the database.

21
New cards
  • Data Manipulation Language (DML)

  • manipulates data stored in a database.

22
New cards
  • Data Control Language (DCL)

  • controls database user access.

23
New cards
  • Data Transaction Language (DTL)

  • manages database transactions.