Relational Schema

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

1/13

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.

14 Terms

1
New cards

Relational Schema

A named relation defined by a set of attributes.

2
New cards

NAME OF RELATION(primary_key, foreign_key, attribute)

Format for relational schema

3
New cards

Relational Database

  • Collection of multiple normalized relations

  • Physical implementation of the relational data model andnormally one uses the services of the DBMS

4
New cards

Metadata (“data about data”)

referred to as the data dictionary or the system catalog or simply catalog.

5
New cards

Foreign Key (FK)

  • Is a column or set of columns whose value matches the primary key of another table

  • You can think of a foreign key as a copy of primary key from another relational table.

6
New cards

Constraints

  • Restrictions on the set of values allowed for attributes of relations

  • Allows to enforce rules in your database. These rules may affect business logic, database integrity, and/or table structures

7
New cards

Integrity Rules

Constraints or restrictions that apply to all instances of the database

8
New cards

Entity Integrity Rule (PK Constraint)

  • States that the value of the primary key can never be a null value

  • Requires that insert, update, and delete operations maintain the uniqueness and existence of all primary keys.

9
New cards

Null Value

  • Represents a value for an attribute that is currently unknown for a tuple

  • Not the same as zero or text string filled with spaces

  • Absence of a value

10
New cards

Referential Integrity Rule (FK Constraint)

States that if a relational table has a foreign key, then every value of the foreign key must be null or match the values in the relational table in which that foreign key is a primary key

11
New cards

NOT NULL Constraint

Allow you to specify that a column may not contain NULL values

12
New cards

DEFAULT Constraint

  • Allow you to specify a value that the database will use to populate fields that are left blank in the input source

  • Replacement for the use of NULL values

  • Great way to predefine common data elements

13
New cards

UNIQUE Constraint

Constraints you to specify that a column may not contain duplicate values

14
New cards

CHECK Constraint

  • Allow you to limit the types of data that users may insert in a database

  • Go beyond data types and allow you to define the specific values that may be included in a column.