TOPIC 1 : Intro to Database Flashcards
WHAT IS DATA?
Raw and unprocessed facts and statistics stored / free flowing over a network.
WHEN DOES DATA BECOMES INFORMATION?
When it’s processed.
WHAT IS DATABASE?
A collection of related data, organized in a way that data is “easily accessed, managed and updated”.
WHAT BASED CAN DATABASE BE?
Software based or Hardware based.
WHAT IS THE MAIN PURPOSE OF DATABASE?
To store data.
WHAT IS DBMS?
A software that “allows creation, definition and manipulation” of database.
WHAT IS THE FULL NAME FOR DBMS?
Database Management System.
WHAT DOES DBMS HELPS US WITH?
It allow users to “store, process and analyze” data easily.
WHAT DOES DBMS PROVIDES US WITH?
It provides an interface / tool to perform various operations
NAME 6 EXAMPLES OF OPERATIONS THAT DBMS ALLOW US TO PERFORM.
- Creating data
- Storing data
- Updating data
- Creating tables
- Providing protection and security to databases
- Maintain data consistency
NAME 6 EXAMPLES OF POPULAR DBMS
- MySql
- Oracle
- SQL Server
- IBM DB2
- PostgreSQL
- Amazon SimpleDB (cloud based)
STATE 7 CHARACTERISTICS OF DBMS. (Characteristic 1)
- Data is stored in tables with rows and columns and never directly stored.
It allows you to have relationships betweeen tables (making it more connected).
Easy to understand visually.
STATE 7 CHARACTERISTICS OF DBMS. (Characteristic 2)
- It follows the process “Normalization”.
Less repetition of data.
STATE 7 CHARACTERISTICS OF DBMS. (Characteristic 3)
- DBMS maintains data consistency
Handles updates and changes to keep data accurate.
STATE 7 CHARACTERISTICS OF DBMS. (Characteristic 4)
- Many people can access and modify (update, insert and delete data) the data at the same time.
STATE 7 CHARACTERISTICS OF DBMS. (Characteristic 5)
- Easy to ask for (or “query”) the data .
Data can easily be fetched, inserted, deleted and updated in a database.
STATE 7 CHARACTERISTICS OF DBMS. (Characteristic 6)
- Protects data from unauthorized access.
STATE 7 CHARACTERISTICS OF DBMS. (Characteristic 7)
- Supports transactions.
Ensures data integrity in multi-user environments.
GIVE 6 ADVANTAGES OF DBMS.
- Easy to manage and update data.
- Saves time and prevents duplicate data.
- Simple to retrieve data using queries.
- Works with many programming languages.
GIVE 3 DISADVANTAGES OF DBMS
- Can be complex to use.
- Some DBMS software is expensive (except 3. MySQL, which is free).
- They require a lot of space to run.
WHAT ARE THE COMPONENTS IN DBMS? (5)
- Hardware
- Software
- Data
- Procedures
- Database Access Language
WHAT DOES IT MEAN BY HARDWARE?
The physical devices that store and access the data, such as hard disks, computers, keyboards, etc.
WHAT DOES IT MEAN BY SOFTWARE?
The DBMS itself (like MySQL, Oracle) that controls access to the data and performs operations on it.
WHAT DOES IT MEAN BY DATA?
The actual data stored in the database. There’s also metadata, which is data about data (e.g., when a file was created, its size, etc.).
WHAT DOES IT MEAN BY PROCEDURES?
The instructions and rules on how to use and manage the DBMS (like installation, backups, and report generation).
WHAT DOES IT MEAN BY DATABASE ACCESS LANGUAGE?
A simple language, like SQL, that allows users to write commands to insert, update, delete, and retrieve data.
NAME 3 TYPE OF USERS.
- Database Administrators
- Application Programmer / Software developer
- End user
WHAT IS ‘DATABASE ADMINISTRATOR’ USER (DBA)?
The person responsible for managing and maintaining the database (securing it, managing user access, making backups).
WHAT IS AN ‘APPLICATION PROGRAMMER / SOFTWARE DEVELOPER’ USER?
They design the application that uses the database (e.g., the software behind a website that interacts with the DBMS).
WHAT IS AN ‘END USER’ ?
These are the people who use the database indirectly (e.g., when you log into a website or app, you’re interacting with a DBMS).
NAME 3 TYPES OF DBMS ARCHITECTURES.
- Centralized Architecture
- Decentralized Architecture
- Hierarchical Architecture
WHAT IS CENTRALIZED ARCHITECTURE?
Data is stored in one location
WHAT IS DECENTRALIZED ARCHITECTURE?
Multiple copies of databases that’s stored in different locations
WHAT IS HIERARCHICAL ARCHITECTURE?
Data is arranged in a tree like structure
DBMS USES 3 TYPES OF DBMS ARCHITECTURES LOGICALLY, NAMED 3 OF THEM.
- 1-tier DBMS Architecture
- 2-tier DBMS Architecture
- 3-tier DBMS Architecture
EXPLAIN WHAT IS 1-TIER DBMS ARCHITECTURE.
The user interacts directly with the database. Mostly used in local development, not for real-world applications.
EXPLAIN WHAT IS 2-TIER DBMS ARCHITECTURE.
There is an application layer between the user and the DBMS.
This layer sends user requests to the DBMS and sends back results.
This is more secure than 1-tier.
EXPLAIN WHAT IS 3-TIER DBMS ARCHITECTURE.
Adds a GUI (Graphical User Interface) layer on top of the application layer, making it easier for end users to interact with the database (e.g., PHPMyAdmin for MySQL is a GUI for managing databases).
This is the most common for modern web apps.
NAME 4 TYPES OF DATABASE MODELS
- Hierarchical Model
- Network Model
- Entity-Relationship Model
- Relational Model
WHAT IS A HIERARCHICAL MODEL?
Data is stored in a tree-like structure, where each “child” has only one “parent.”
Example: A department can have many professors and students, but each student belongs to just one department.
WHAT IS A NETWORK MODEL?
Similar to the hierarchical model, but in this case, a child can have multiple parents.
This allows for more complex relationships and faster access to related data.
WHAT IS AN ENTITY-RELATIONSHIP MODEL?
Data is divided into entities (e.g., “Student”) and attributes (e.g., “Name”, “Age”).
Relationships are established between different entities.
Example: A student entity can have a relationship with a course entity.
WHAT IS A RELATIONAL MODEL?
Data is stored in two-dimensional tables (called relations), and relationships are maintained by storing common fields between tables.
Example: A table for Students and another for Courses can be related by a common field, like student_id.
WHAT IS THE MOST WIDELY USED MODEL?
Relational Model
WHO AND WHEN RELATIONAL MODEL WERE INTRODUCED ?
E.F. Codd in 1970