Chapter 1 Flashcards

1
Q

Table

A

Has a name, and fixed tuple of columns, and a varying set of rows

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

Column

A

Has a name and data type

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

Row

A

An unnamed tuple of values each value corresponds to a column and belongs to a columns data type

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

Data type

A

A named set of values from which column values are drawn

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

Set

A

in an ordered collection of elements, enclosed in braces, and are the same since sets are not ordered.

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

Database model

A

A conceptual framework for database systems with three parts: data structures that prescribe how data is organized, that manipulate data structures and rules that govern valid data.

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

Select

A

A command that selects a subset of rose of a table

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

Project

A

A command that eliminates 1 or more columns of the table

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

Product

A

List all combinations of rows of two tables

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

Join

A

Combines two tables by comparing related columns

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

Union

A

Select all rows of two tables

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

Intersect

A

Select rows common to 2 tables

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

Difference

A

Select rows that appear in one table, but not another.

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

Rename

A

Changes a table name

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

Aggregate

A

Computes functions over multiple table rows, such as sum and count

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

Relational operations

A

Based on set theory, each operation generates a result table from one or two input tables

17
Q

Relational rules

A

Unique primary key – all tables have a primary key column, or group of columns in which values do not repeat

Unique column name, different columns of the same table have different names.

No duplicate rows: no two rows of the same table have identical values in every column.

18
Q

Business rules

A

Based on business policy and specific to particular databases, EX: all rows of an employee table must have a valid entry in the department code column call or passport number values may not repeat in different employee rows.

19
Q

Business rules

A

Based on business policy and specific to particular databases, EX: all rows of an employee table must have a valid entry in the department code column call or passport number values may not repeat in different employee rows.

20
Q

SQL

A

A high-level computer language for storing, manipulating and retrieving data

21
Q

Statement

A

Complete command, composed of one or more clauses

22
Q

Clause

A

Groups, SQL keywords together

23
Q

Data definition language

A

SQL sub language that defines the structure of the database

24
Q

Data query language

A

Is SQL sub language that retrieve data from the database

25
Q

Data manipulation language

A

ASQL sub language that manipulates data stored in a database

26
Q

Data control language

A

ASQL sub language that controls database user access

27
Q

Data transaction language

A

A SQL sub language that manages database transactions

28
Q

Database system instance

A

A single executing copy of a database system

29
Q

Create database command

A

Creates a new database

30
Q

Database drop command

A

Delete a database, including all tables in that database

31
Q

Show statement

A

Provides database users and administrators with information about database such as the database contents and server status information

32
Q

Use

A

Select a database and is required to show information about tables within a specific database