DB Flashcards

1
Q

Types of DBMS Models

A

Hierarchical DB
Network
ER Model
Relational DB

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

DB Model

A

A database model is a type of data model that determines the logical structure of a database. It fundamentally determines in which manner data can be stored, organized and manipulated.

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

Drop vs Truncate syntax

A

Syntax» Drop: delete an entire table or db

Truncate: Delete specific data within the db

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

Database Transaction

A

A Database Transaction is a logical unit of processing in a DBMS which entails one or more database access operation. a database transaction is a single unit of all the dynamics involved in one or more database operationsIn a nutshell, database transactions represent real- world events of any enterprise.

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

ACID Properties of a DB

A

Atomicity
Consistency
Isolation
Durability

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

Define ACID properties of a DB

A

ACID Properties are used for maintaining the integrity of database during transaction processing. ACID in DBMS stands for Atomicity, Consistency, Isolation, and Durability.

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

External Model of a DB

A

The external model is the end user’s view of the data. Typically a database is an enterprise system that serves the needs of multiple departments. However, one department is not interested in seeing other departments’ data (e.g., the human resources (HR) department does not care to view the sales department’s data).

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

Conceptual design

A

Conceptual design is the first stage in the database design process. The goal at this stage is to
design a database that is independent of database software and physical details. The output of this process is a conceptual data model that describes the main data entities, attributes, relationships, and constraints of a given problem domain.
Keep in mind the following minimal data rule:
“All that is needed is there, and all that is there is needed”.

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

Schema

A

schema is the skeleton structure that represents the logical view of the entire database. The blueprint for how data is organized and stored within the database, specifying the tables, fields, data types, constraints, and relationships between tables.

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

reasons for database abstraction level

A
  1. Data Independence
  2. Application Portability
  3. Security
  4. Access Control
  5. Query Optimization
  6. High Availability
  7. Scalability
  8. Cross-Platform Compatibility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Importance of DB Transaction Log

A

Security
High Availability
Archive
PIT recovery
Rollback support

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

SQL Statements used in DB

A

Commit
Rollback

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

Levels of transaction isolation

A

Non committed reads
Committed reads
Repeatable reads
Serialized

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

Main components of a db

A

Software
Hardware
Data
Procedures
Data access language

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