DATABASES Flashcards

1
Q

Data management challenges:

A
Large amount of data • Different types of users
with different access rights
• Concurrent
access to data
• Potential failures during
execution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the function of a DBMS?

A

A DBMS supports a user in the management of large amounts of

structured data.

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

How does a DBMS manage data?

A
  • Query optimization
  • Concurrent accessmanagement
  • Transaction handling
  • Check consistency of data
  • Access control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

History od databases

A
1960: Navigational
DBMS
1970: Relational
Databases by Edgar F.
Codd
1970: SQL by Donald D.
Chamberlin and
Raymond F. Boyce
1990: Object Oriented
Databases
2000: NoSQL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Relational Databases and it’s characteristics

A
Organizes data into tables (relations)
• Typed columns
• Rows are identified by unique keys
called primary keys
• Rows of other cells can be referenced
through foreign keys
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SQL enables you to :

A
Create a Database
Drop Database
Create a Table
Drop a Table
Alter a Table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Characteristic of SQL made tables

A

Columns have a datatype

Columns can have constraints

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

What is are the data types in SQL

A
Integers: INTEGER (or INT), SMALLINT
Decimals: DECIMAL, FLOAT
Strings: CHAR, VARCHAR, TEXT, BLOB
Dates/times: DATE, DATETIME,
TIMESTAMP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SQL Constraints

A
NOT NULL
UNIQUE
DEFAULT
PRIMARY KEY
AUTO INCREMENT
FOREIGN KEY
Events
Referential actions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Events can be:

A

On Update

On Delete

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

Referential actions:

A

CASCADE
• RESTRICT/NO ACTION
• SET NULL
• SET DEFAULT

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

Data Manipulation can be through:

A
Insert
Select
Update
Delete
Filter (for Select, Update, and Delete)
Grouping
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Characteristics of the filter data manipulation:

A
Equal, Less, …
• Between
• In
• Like
Filters can also contain nested select
statements!
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the Characteristics of the grouping data manipulation?

A

It can be done through :
Aggregate Functions
Filtering

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

Examples of aggregate functions

A
COUNT
• MAX
• MIN
• SUM
• AVG
How well did you know this?
1
Not at all
2
3
4
5
Perfectly