Exam 1 Flashcards

(98 cards)

0
Q

Database Management System = SOFT CRIN WTDB

A

Database Management System: software to create and interact with database.

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

Database = LOST 2 STD

A

Database = logical structure to store data

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

Each byte = CH BBB I

A

Each byte = character that is the basic building block of information.

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

Record = CFSE & RPD

A

Record = collection of fields for specific entity and row in the physical database

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

Relational Database Management System: SP CRDB ENT MAN RTD

A

Software to create the database and allows you to enter, manipulate, and retrieve data.

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

SELECT statements are: ST 2 RT DFDB

A

Used to retrieve data from the database

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

Syntax gives the BS ORU 4 CO

A

Gives the basic structure or rules for a command

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

SELECT clause identifies

A

Columns

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

FROM clause identifies

A

Tables

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

Each clause begins with a:

A

Keyword

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

To execute SQL statements use:

A

Semicolon or slash

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

To select all data in a table:

A

Substitute an asterisk for the column names in a SELECT clause

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

To select one column from a table:

A

Enter column name in SELECT clause

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

To select multiple columns from a table:

A

Separate column names with a comma

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

Enclose in double quotation marks when:

A

It contains blank spaces, special symbols or to retain case

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

Arithmetic Operations are:

A

Executed left to right

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

Multiplication and division are solved:

A

First with arithmetic operations

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

Addition and subtraction are solved:

A

Last with arithmetic operations

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

You override arithmetic operations with:

A

Parentheses

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

To suppress duplicates:

A

Enter DISTINCT or UNIQUE after SELECT keyword

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

Field= GRC

A

Field= group of related characters

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

Field= ACE

A

Attribute or character of an entity

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

Field= CPD

A

Column in the physical database

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

File= GRSE

A

Group of records about the same type of entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Relational database = COR
Collection of relations
25
Rows= DAE
Contain data about an entity
26
Columns= DAAE
Data about attributes of the entity
27
Cells= THSV
Cells of the table hold a single value
28
Character = BUD & L, N, SS
Basic unit of data and can be a letter, #, or special symbol
29
Bit= SDU
Smallest data unit
30
Byte= 8FB
Few bits (usually 8)
31
Database components:
Field, record, and file
32
Relation:
Two-dimensional table
33
Each column has:
A unique name
34
The order of the columns is:
Unimportant
35
The order of the rows is:
Unimportant
36
No two rows can be:
Identical
37
Table =
File
38
File =
Relation
39
Row =
Record
40
Record =
Tuple
41
Column =
Field
42
Field =
Attribute
43
Normalization:
Used to reduce or control data redundancy
44
Primary key:
Field that serves to uniquely identify each record in a table
45
Candidate key:
Any field that could be used as the primary key
46
Surrogate key:
The records primary key identifier when no suitable primary key exists
47
Foreign key:
A field in a table that is a primary key in another table
48
Composite key:
A unique key that you create by combining two or more fields
49
Partial dependency:
A column that is only dependent on a portion of the primary key
50
1NF=
Eliminate repeating groups and identify primary key
51
2NF=
Table is in 1NF and partial dependencies are eliminated
52
3NF=
Table is in 2NF and transitive dependencies are eliminated
53
Tables are linked through:
A common field
54
Common field=
A primary key in one table and a foreign key in the other table
55
SQL=
A data sub language that has constructs for defining and processing a database
56
Data definition language is used to:
Define database structures
57
Data Manipulation Language is used to:
Query and update data
58
Concatenation:
Are two vertical bars and can combine data with string literal
59
Concatenation allows use of:
Column alias
60
WHERE clause is used to:
Retrieve rows based on a stated condition
61
WHERE clause requires:
Column name, comparison operator, and value or column for comparison
62
WHERE clause is:
Case sensitive
63
List WHERE clause after:
FROM clause
64
In WHERE clause enclose non-numeric data in:
Single quotes
65
Comparison Operators:
Indicates how the data should relate to the given search value
66
The default SQL format for dates is:
DD-MON-YY
67
>
Greater than
68
<
Less than
69
<>
Not equal to
70
<=
Less than or equal to
71
>=
Greater than or equal to
72
Math comparison operators may work with:
Text as well as numbers
73
BETWEEN... AND Operator
To find values in a specified range
74
IN Operator
Values are separated by commas and list must be in parentheses
75
LIKE Operator
Performs pattern searches
76
Logical operators:
Used to combing conditions
77
Not
Reverses meaning
78
And
Both conditions must be true
79
Or
At least one condition must be true
80
ORDER BY Clause
Presents data in sorted order
81
Use DESC keyword to:
Override column default
82
In ascending order, values will be listed in the following sequence:
Numeric values, character values, NULL values
83
Secondary sort may be used to:
Sort multiple exact matches
84
Joins are used to:
Link tables and reconstruct data in a relational database
85
Joins can be created through:
Using the WHERE clause or using the JOIN keyword in the FROM clause
86
Cross Join is created by omitting joining condition in the:
WHERE clause or through CROSS JOIN keywords in the FROM clause
87
Equality Join:
Links rows through equivalent data in a common field that exists in both tables
88
Equality join is also called:
Equijoins, natural join, inner joins, or simple joins
89
Table Alias:
A temporary name that works like a column alias
90
If a table alias is assigned to a table:
It must be used any time the table is referenced in the SQL statement
91
Use NATURAL JOIN when:
Tables have one column in common
92
Use JOIN... USING when:
Tables have more than one column in common
93
Use JOIN... ON when:
A condition is needed to specify a relationship other than equivalency
94
Using the JOIN keyword frees the:
WHERE clause for exclusive use in restricting rows
95
Self Joins:
Used to link a table to itself
96
Outer Joins
Used to include rows that do not have a match in the other table
97
Set Operators
Used to combine the results of two or more SELECT statements