Chapters 1-3 Flashcards

1
Q

What are the Limitations of File-based Systems

A
  • Separated and Isolated Data
  • Duplication of Data
  • Data Dependency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a DBMS

A

Database Management System, a software package/system that manages and organizes databases

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

What is a Data Record

A

Collection of information organized in a table

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

What is a Data Element

A

Specifies the type of data in a column

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

What is a Datatype

A

Attribute that specifies the held object’s datatype

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

What are the Main Characteristics of the Database Approach

A
  • Self Describing
  • Insulation Between Programs and Data
  • Data Abstraction
  • Support Multiple Views of the Data
  • Sharing of Data and Multi-user Transaction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How is a Database System Self-describing

A

A database is structured in such a way that it contains the database and metadata of data.

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

What is Metadata?

A

Data that provides information about other data

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

What is a Database

A

Collection of structured inter-related data

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

What are the Advantages of a DBMS

A
  • Controls Data Redundancy
  • Data Sharing
  • Easy Maintenance
  • Reduce Time
  • Multiple User Interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the Disadvantages of DBMS

A
  • Cost of Hardware and Software
  • Complexity
  • Higher Impact of Failure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the Types of Databases

A
  • Centralized Database
  • Distributed Database
  • Relational Database
  • NoSQL Database
  • Cloud Database
  • Object-oriented Database
  • Hierarchical Database
  • Network Database
  • Personal Database
  • Operational Database
  • Enterprise Database
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the Two Approaches in Maintaining Databases

A
  • Traditional File Based Approach
  • Centralized DBMS Approach
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a File-based System

A
  • Early Attempt using COBOL
  • Data is stored in flat files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Who are the Actors in a Database?

A
  • Database Administrator: monitoring, maintaining, authorizing
  • Database Designers: Define content, structure, and constraints of database
  • End Users: people whose jobs require database access
  • System Analysts: Determine end-user requirements
  • Application Programmers: implement specifications
  • DBMS System Designers and Implementers: design and implement software packages
  • Tool Developers: Design and implement tools
  • Operators and Maintenance Personnel: Responsible for the actual running and maintenance of hardware and software
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Advantages of Using the DBMS Approach

A
  • Controlling Redundancy
  • Reduced Application Development Time
  • Flexibility to Change Data Structures
  • Availability of Current Information
  • Economies of Scale
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

When not to Use a DBMS

A
  • Simple Data storage
  • Low Data Volume
  • Limited Resources
  • Simple Read-only Applications
  • Cost Considerations
  • Complexity of Implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is Data

A

Collection of raw facts

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

What is a RDBMS

A

A relational database management system stores data in a tabular form (relations)

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

What are the Parts of a Table

A
  • Columns: Attributes
  • Rows: Records
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is a Primary Key

A

Unique identifier that makes each row unique

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

What is a Foreign Key

A

Used to create a relationship between two tables

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

What are Relationships

A

Data in different tables linked using primary and foreign keys

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

What are the 3 common types of relationships?

A
  • One-to-One: one record to one record
  • One-to-Many: one record to many records
  • Many-to-Many: multiple records in one table to multiple others in another table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What are the Properties of RDBMS

A
  • Atomicity: operations only fail or succeed
  • Consistency: any transaction will not violate database rules or constraints
  • Isolation
  • Durability: Ensures committed data is permanent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What is an HDBMS

A

A hierarchical database management system stores data in the form of parent-child relationship nodes like a tree

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

Define the Parent-child relationship in HDBMS

A

Parents can have multiple children, but children can only have one parent

28
Q

What is an NDBMS

A

A Network Database Management System organizes data in a graph structure

29
Q

What is an OODBMS

A

An object-oriented database management system uses an object-oriented data model for storing data, where objects replace tables and records replace instances

30
Q

Define how objects are structured in OODBMS

A

Each data can contain data (attributes) and functions (methods)

31
Q

What is a NoSQL DBMS

A

Designed to store large volumes of unstructured and semi-structured data using different methods

32
Q

What are the different types of NoSQL Databases?

A
  • Document-based: storing data into documents
  • Key-value: data is stored in a key-value database where each item contains keys and values
  • Column-based: data is stored in tables, rows, and dynamic columns and different rows can have different sets of columns
  • Graph-based: storing data in the form of nodes (nouns) and edges (relationships)
33
Q

What is Metadata?

A

defines structure, constraints, and properties of data in the database

34
Q

What is a DDL?

A

Data Description Language is a set of SQL commands used to create and modify database objects

35
Q

What is Data Resusitation?

A

The process of retrieving data in a specific format when required (such as querying)

36
Q

What is DML

A

A database manipulation language is a set of SQL commands used to manipulate data in the database

37
Q

What are control functions?

A

Govern data sharing, data integrity, confidentiality, and security

38
Q

What is a Database Schema?

A

Blueprint that defines the structure of a database, changes every database update

39
Q

What are Instances?

A

Actual data stored in the database in any given time

40
Q

What is a database State?

A

Data stored in the database at a particular moment of time, changes very infrequently

41
Q

What are the Three levels of the Three Schemas Architecture?

A
  • Internal Schema (Physical Level)
  • Conceptual Schema (Logical Level)
  • External Schema (View Level)
42
Q

What is the Objective of the Three-schema Architecture?

A

Allow multiple users to access the same data with personalized views while storing data only once, allowing flexibility

43
Q

What is the External Schema?

A

Describes a part of the database while hiding everything else from the user

44
Q

What is Conceptual Schema?

A

Describes the design of a database at the conceptual level, doesn’t care about how data is stored

45
Q

What is Internal Schema

A

Describes how data is physically stored in the database

46
Q

What are the Types of Three-schema Architecture?

A
  • Internal to Conceptual Mapping: Files and Indexes are converted into a logical structure
  • Conceptual to External Mapping: Defines how the database structure is shown to different users in their specific views
  • External to Conceptual: explains how changes made by users in their views are reflected back to the conceptual schema
47
Q

What is Data Independence?

A

Being able to fully modify the schema at one level of a database system without altering the schema at the next higher level

48
Q

What are the two Types of Data Independence?

A
  • Logical Data Independence: being able to change the conceptual schema without having to change the external schema
  • Physical Data Independence: being able to change internal schema without having to change conceptual schema, occurs at the logical interface level
49
Q

What are the DBMS Interfaces?

A
  • Standalone Query Interface
  • Command Line Interface
  • Form-based Interface
  • Embedded SQL Interface
  • Natural Language Interface
  • Application Programming Interface
50
Q

What is a Standalone Query Interface?

A

Let users interact with a database by writing and executing SQL queries in a user-friendly environment

51
Q

What is a Command Line Interface?

A

A Text-based interface where users type commands to interact with the database directly

52
Q

What is a Form-based Interface?

A

A Graphical Interface where users can enter or view data through forms, which simplifies data-entry for non-technical users

53
Q

What is an Embedded SQL Interface?

A

Allows SQL statements to be embedded directly within programming languages

54
Q

What is a Natural Language Interface

A

Allows users to interact with the database using natural language rather than formal query languages

55
Q

What is an Application Programming Interface

A

Allow applications to interact programmatically with the database

56
Q

What is 1-tier Architecture for DBMS

A

The database, application, and user interface are all inside a single system but can be accessed remotely

57
Q

What is 2-tier Architecture for DBMS

A

The application (client) system sends requests and the database (server) returns results (on separate systems)

58
Q

What is the Role of the ODBC in the 2-tier Architecture?

A

General purpose API that allows applications to connect to different databases

59
Q

What is the Role of the JDBC in the 2-tier Architecture?

A

Java-based API that allows Java applications to connect to databases

60
Q

What is N-tier Architecture?

A

Extends 3-tier by adding specialized layers, making the system more modular and scaleable

61
Q

What are Integrity Constraints?

A

Database rules to maintain accuracy, consistency, and reliability

62
Q

What is a Domain Constraint?

A

Make sure that an attribute only has valid values

63
Q

What is a Referential Integrity Constraint?

A

Relationship between tables remains consistent

64
Q

What is a Key Constraint?

A

Ensures a key attribute must be unique for every record

65
Q

What is a View in a Database?

A

A virtual table created by querying data from one or more tables

66
Q

What are Participation Constraints in DBMS?

A

Rules that govern the minimum and maximum number of entities or relationships that must or may participate in a relationship

67
Q

What are the Two Types of Participation Constraints in DBMS?

A
  • Total Participation (Mandatory)
  • Partial Participation (Optional)