Module 2 - Relational Data Concepts Flashcards

(11 cards)

1
Q

Relational Data Explained

A
  • In a relational database, real-world entities are represented as tables.
  • An entity can be an object or an event.
  • Each column holds a particular datatype:
  • Text, Float, Int, Data/Time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Normalization Explained

A

Minimizes data duplication and enforces data integrity.
- In practice
- Separate each entity into its own table.
- Separate each attribute into its own column.
- Uniquely identify each entity instance using a primary key.
- Use foreign key columns to link related entities.

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

SQL Explained

A

Structured Query Language is the language used to interact with a relational database.

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

SQL statement types

A
  • DDL Data Definition Language
  • DCL Data Control Language
  • DML Data Manipulation Language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data Definition Language (SQL statements)

A

Manage tables, stored procedures, views and more.
- Create:
- Create a new object in the database, such as a table or a view.
- Alter:
- Modify the structure of an object. Add a new column for example.
- Drop:
- Remove an object from the database.
- Rename:
- Rename an existing object.

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

Data Control Language (SQL statements)

A

Control access to database objects
- Grant:
- Grant permission to perform specific actions
- Deny:
- Deny permission to perform specific actions
- Revoke:
- Remove a previously granted permission

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

Data Manipulation Language (SQL statements)

A

Working with the rows stored in tables
- Select:
- Read rows from a table
- Insert:
- Insert new rows into a table
- Update:
- Modify data in existing rows
- Delete:
- Delete existing rows

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

Database Objects List

A
  • Tables
  • Views
  • Stored Procedures
  • Indexes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Views (Database Objects)

A

A virtual table, that is the result of a Select query.
A way to present specific data from one or more tables as a single, unified object.
- You can select from this.

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

Stored Procedures (Database Objects)

A

Collection of SQL statements that can be run on demand. Encapsulate logic within the database.

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

Indexes (Database Objects)

A

Data structure to make locating values in a table faster.

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