Database Schema, Relationships, and SQL Fundamentals for Students

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

1/44

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.

45 Terms

1
New cards

What is the difference between Char and VarChar?

String lengths are fixed in Char.

2
New cards

How do you capture a recursive relationship in a relation schema?

The primary key is also identified as a foreign key.

3
New cards

What is the key for an associative entity in the relational model schema?

The key consists of the primary keys of the two related tables.

4
New cards

How is a one-to-many relationship implemented in a database schema?

The key of the one class becomes a foreign key in the many class.

5
New cards

In transforming a recursive relationship to the relational model, a foreign key is created that references what?

Its own relation.

6
New cards

What is the relational model concept equivalent to a many-to-many relationship?

A bridge table.

7
New cards

What SQL data type is used for strings?

VarChar.

8
New cards

Which of the following is NOT a valid default action for a foreign key on delete?

Remove.

9
New cards

What is the relational model concept equivalent to an attribute?

An attribute.

10
New cards

How are keys transformed to capture a one-to-one relationship?

The primary key of one class becomes a foreign key in the related class.

11
New cards

What is the relational model concept equivalent to an object entity?

A relation.

12
New cards

To make changes to a table definition, which command is used?

ALTER.

13
New cards

How is a many-to-many relationship implemented in a schema?

A new table is created with foreign keys of both classes.

14
New cards

What does Numeric(8,2) mean?

8 digits, 2 of them to the right of the decimal.

15
New cards

To remove a table from the database schema definition, which command is used?

DROP.

16
New cards

What is the second name for a table in the FROM clause called?

An alias.

17
New cards

What is the maximum number of tables that can be joined?

There is no maximum.

18
New cards

When are conditions connected by AND true?

Only when both conditions are true.

19
New cards

What clause gives the condition for selecting rows?

WHERE.

20
New cards

What SQL statement is used to enter new rows?

INSERT.

21
New cards

What clause identifies which tables the query accesses?

FROM.

22
New cards

In what order do SQL SELECT clauses run?

FROM, WHERE, SELECT, ORDER BY.

23
New cards

What does * in SQL SELECT mean?

List all columns.

24
New cards

What is the minimum number of clauses in a SELECT statement?

2.

25
New cards

What is the first column listed in ORDER BY?

The primary sort key.

26
New cards

What is the process of linking records across tables called?

Joining.

27
New cards

What clause specifies which columns to list?

SELECT.

28
New cards

What is a column whose value is always unique called?

A key.

29
New cards

What clause specifies how rows should be sorted?

ORDER BY.

30
New cards

When are conditions connected by OR true?

When either condition is true.

31
New cards

What is a doctor not allowed to view some records considered?

Not authorized.

32
New cards

What is the term for concurrent updates causing data loss?

Lost update problem.

33
New cards

What is NOT part of a viable backup/recovery process?

Periodic freezing of all transactions.

34
New cards

What is another name for symmetric encryption?

Single-key encryption.

35
New cards

What is the process of applying change logs to recover lost activity called?

Database restore and rerun.

36
New cards

What is reading outdated data called?

Inconsistent read problem.

37
New cards

What is determining who is requesting access called?

Authentication.

38
New cards

What is the plan to fix a lost or damaged database called?

Disaster recovery plan.

39
New cards

What is determining what actions are allowed called?

Authorization.

40
New cards

What does authorization validate?

A person's permissions.

41
New cards

What is using backups to restore the database to a point in time called?

Database restore and rerun.

42
New cards

What is a backup of only part of the database called?

Partial backup.

43
New cards

What type of backup requires all activity to stop?

Cold backup.

44
New cards

What occurs first when accessing a database?

Authentication, then authorization.

45
New cards

How is data hidden from being human readable?

By encrypting the data.