db tutorial 1&2 soln
db tutorial 1&2 soln
---
## TUTORIAL 1
- **Data**: Raw facts and figures that can be processed to produce information. For example, names,
numbers, and dates.
- **DB (Database)**: A structured collection of data that is stored and accessed electronically.
Databases are designed to manage large amounts of information by organizing data into tables.
- **DBMS (Database Management System)**: Software that interacts with the database, applications,
and users to capture and analyze data. It provides tools for data storage, retrieval, and management.
- **DB Application**: Software applications that interact with a database to perform various functions
like data entry, querying, and reporting. Examples include customer relationship management (CRM)
systems, inventory management systems, and online booking systems.
#### i. DB (Databases)
1. MySQL
2. Oracle Database
4. PostgreSQL
5. MongoDB
6. SQLite
#### ii. DBMS (Database Management Systems)
1. MySQL
2. Oracle Database
4. PostgreSQL
5. MongoDB
6. IBM Db2
### 3. When data are organized on the sheet of paper, is that a database?
No, a sheet of paper organizing data does not constitute a database. A database requires a systematic
way of storing and managing data, typically in a digital format that allows for efficient retrieval,
manipulation, and querying.
---
## TUTORIAL 2
A **File Processing System** is a method of storing and managing data in files on a computer system. It
involves creating separate files for different data types, and each application program is responsible for
managing its own files. This system can lead to data redundancy and inconsistency since multiple
programs may have separate copies of the same data.
- **Data Manipulation**: Supports operations like adding, updating, and deleting records.
- **Data Definition**: Allows users to define the structure of the database (DDL).
- **Data Backup and Recovery**: Offers tools for data backup and recovery procedures.
- **Data Redundancy**: DBMS minimizes data redundancy; file processing systems often have duplicate
data.
- **Data Integrity**: DBMS enforces integrity constraints; file processing systems do not.
- **Data Access**: DBMS supports complex querying; file processing relies on simple file access
methods.
- **User Management**: DBMS allows multiple users with controlled access; file processing systems are
limited in concurrent access.
- **Maintenance**: DBMS provides tools for maintenance and recovery; file processing systems require
manual intervention.
2. Application Developers
3. Data Analysts
### 6. Differentiate Database Administrators and Designers from System Analysts and Application
Developers.
- **Database Administrators (DBAs)**: Focus on managing and maintaining the database systems,
ensuring data integrity, security, and performance.
- **Database Designers**: Responsible for designing the database structure, including schemas and
data models.
- **System Analysts**: Analyze business requirements and design systems that meet those needs, often
serving as a bridge between users and developers.
- **Application Developers**: Write and maintain applications that interact with databases, focusing on
functionality and user interface.
### 7. With reference to Database Access Language, write down DDL and DML syntax.
- **CREATE TABLE**:
```sql
column1 datatype,
column2 datatype,
...
);
```
- **ALTER TABLE**:
```sql
```
- **DROP TABLE**:
```sql
```
#### DML (Data Manipulation Language) Syntax
- **INSERT INTO**:
```sql
```
- **UPDATE**:
```sql
UPDATE table_name
WHERE condition;
```
- **DELETE FROM**:
```sql
WHERE condition;
```
---