Database Flashcards
What are the 5 Components of a Database System
Data
Hardware
Software
Users
Database Access Language
What are the 3 attributes of Data?
(Sentences)
- Stored in a single database.
- Shared among different users.
- Integrated to ensure consistency and coherence.
What are the attributes of Hardware?
- Includes secondary storage devices like disks and drums.
- Supports running the DBMS.
- Holds stored data in the database.
What are the attributes of Software?
- DBMS acts as an interface between the physical database and users.
- Handles user requests to access the database.
- Shields users from hardware details.
- Provides facilities for accessing, updating, adding, and deleting data.
What is CRUD?
Create, Read, Update, Delete
What are the attributes of Users?
(People that interact with the data)
- Various types of users interact with the database system:
- Application Programmers.
- Online users.
- End users.
- Database Administrators
What are the attributes of Database Access Language?
- Allows users to write commands for operations on the data stored in the database.
- Examples include SQL, My Access, Oracle, etc.
What are the two Database Access Languages?
Data Definition Language (DDL)
Data Manipulation Language (DML)
What is Data Definition Language (DDL)?
Constructs the database schema. Example: CREATE
command.
What is Data Manipulation Language (DML)?
Accesses the database, providing statements for
retrieving, modifying, inserting, and deleting data. Example: INSERT command.
What are Data Models?
Data models describe the structure of the database, including data types, relationships, and
constraints.
- They facilitate communication between users and database designers, helping to understand
the meaning of data and user requirements.
What are the 4 Characteristics of Data Models?
- Usability: User-friendly design and ease of modification.
- Scalability: Adaptable to growth and performance considerations.
- Maintainability: Ease of maintenance with documentation and comments.
- Standardization: Consistent naming conventions and data types.
What is the Hierarchical Data Model?
- Organizes data into a tree-like structure with records connected through links.
- Each record contains fields with single values.
- Example: Family tree.
What is the Relational Data Model?
- Represents data as tables (relations) with rows and columns.
- Each row represents a record, and each column represents an attribute.
- Example: Student grades tracker.
What is the Network Data Model?
- Overcomes hierarchical model limitations by allowing a child to have multiple parents.
- Nodes are connected in a network structure.
- Example: Research paper network.
What is the Object-Oriented Data Model?
- Data and relationships contained in objects with attributes and methods.
- Represents real-world problems using objects and relationships.
- Example: Personal photo album.
What is the Entity-Relationship Model (ERD Model):
- Graphical approach to database design defining data elements and relationships.
- Represents real-world objects and their relationships.
- Example: Employee entity in an organization.
What are SQL Queries?
Structured Query Language used for managing and manipulating relational
databases.
What are the 3 SQL Queries categories?
Data Definition Language (DDL)
- Data Manipulation Language (DML)
- Data Control Language (DCL)