Comp 1: Intro to Databases Flashcards

1
Q

What is data?

A

Numbers, text, visual, or audio info that describes real-world systems.

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

What are three ways data varies?

A
  1. Scope, 2. Format, 3. Access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a database?

A

Collection of data in structured format.

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

What is a database system also known as?

A

Database Management System (DBMS)

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

What does a DBMS do?

A

software which reads and writes data in database. Ensures security, consistency, and availability.

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

What is a query language?

A

Specialized programming language for designed for db systems.

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

What is Database Application?

A

Programmers write the query languages into friendly GUI.

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

What are the 4 Database Jobs?

A
  1. DB Administrator. Secures DB system.
  2. DB Designer. Determines format and structure. Storage, response time, and support.
  3. DB Programmer. Writes the apps which combine query and general programming languages.
  4. DB User. The person who uses it.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

5 requirements for a database use by many users.

A
  1. Performance
  2. Authorization
  3. Security
  4. Rules
  5. Recovery
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a transaction?

A

Group of queries that must be completed or rejected as a whole. (p^q)

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

What 3 things does a DB do when processing transactions?

A
  1. Ensure p^q. Complete entire transaction or not at all.
  2. Prevent conflicts between concurrent transactions.
  3. Ensure results are never lost.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the architecture of the database system?

A

Internal components and relationship between those components.

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

What are the 5 components of a DB system and what do they do?

A
  1. Query Processor. Interprets and returns results of query.
  2. Storage Manager. Translates query processor to low-level file system commands.
  3. Transaction Manager. Makes sure transactions are done appropriately. Restores back up if system fails.
  4. Log. Contains records of everything.
  5. Catalog. Directory of tables, columns, indexes etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is big data?

A

Gigantic clusterfuck of data uploaded to the internet in the 90s and early 2000s.

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

What are non-relational systems called?

A

NoSQL

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

Are most DB systems Open Source or Proprietary?

A

Open Source

17
Q

What are the top 5 DB products today?

A
  1. Oracle (proprietary)
  2. MySQL (open source)
  3. SQL Server (proprietary)
  4. PostgreSQL (open source)
  5. MongoDB (open source)
18
Q

How was SQL originally developed?

A

IBM in the 1970s as prototype for relational databases.

19
Q

What is a query?

A

Command which inserts, retrieves, updates, or deletes data. CRUD (create, read, update, delete)

20
Q

What are 4 common SQL commands?

A

INSERT, SELECT, UPDATE, DELETE

21
Q

What are the main 4 data types used in CREATE TABLE?

A

INT
DECIMAL
VARCHAR
DATE

22
Q

What is the analysis phase?

A

Specifies reqs for DB. Entities, relationships, attributes, etc.

23
Q

What do ER diagrams represent?

A

Entities, relationships, and attributes.

24
Q

What are the symbols used in ER Diagrams for each represented concept?

A
  • Rectangles = entities
  • Lines between = relationships
  • Text inside = attributes
25
Q

What is logical design?

A

Plans the DB. Shows how logic will flow from one piece to another. Also called Schema.

26
Q

What are keys?

A

Column used to ID individual rows of a table.