0% found this document useful (0 votes)
8 views19 pages

Database and Design

The document is a comprehensive guide for Database and Design exam preparation, covering topics such as Big Data Analytics, Database Systems, Database Design, and SQL. It includes definitions, properties, advantages, disadvantages, examples, and sample exam questions with solutions. Additionally, it provides YouTube video resources for further learning and tips for effective study.

Uploaded by

agbornjabesong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views19 pages

Database and Design

The document is a comprehensive guide for Database and Design exam preparation, covering topics such as Big Data Analytics, Database Systems, Database Design, and SQL. It includes definitions, properties, advantages, disadvantages, examples, and sample exam questions with solutions. Additionally, it provides YouTube video resources for further learning and tips for effective study.

Uploaded by

agbornjabesong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

please can you generate all what we have chat on today into 1 document such that I can copy

and
convert into a word document

Absolutely! Here is a well-organized document that combines all our discussions, summaries,
explanations, and sample solutions for your Database and Design exam preparation. You can copy this
into Word or any text editor for your study and revision.

---

# DATABASE AND DESIGN EXAM PREPARATION SUMMARY

---

## **1. Big Data Analytics**

**Definition:**

Big Data Analytics is the process of collecting, organizing, and analyzing large sets of data to discover
patterns, trends, and insights.

**Properties/Characteristics:**

- **Volume:** Handles massive amounts of data.

- **Velocity:** Processes data at high speed.

- **Variety:** Manages different data types (text, images, videos).

- **Veracity:** Deals with data uncertainty and accuracy.

- **Value:** Extracts useful insights.

**Importance/Uses:**
- Improves business decisions.

- Detects fraud in banking.

- Predicts customer behavior.

- Supports scientific research.

**Advantages:**

- Provides deeper insights.

- Enables real-time analysis.

- Increases efficiency.

**Disadvantages:**

- High cost of infrastructure.

- Requires skilled professionals.

- Privacy and security concerns.

**Types of Analytics:**

- **Descriptive:** What happened?

- **Diagnostic:** Why did it happen?

- **Predictive:** What will happen?

- **Prescriptive:** What should be done?

**Examples:**

- Social media sentiment analysis.

- Healthcare patient data analysis.


---

## **2. Big Data: Challenges, Opportunities, and Uses**

**Challenges:**

- Data privacy and security issues.

- Managing data quality and consistency.

- Integrating data from multiple sources.

- Storage and processing limitations.

**Opportunities:**

- New business models (e.g., personalized marketing).

- Improved healthcare (predictive diagnosis).

- Enhanced customer experience.

**Uses:**

- Fraud detection in financial services.

- Real-time traffic management.

- Recommendation systems (e.g., Netflix, Amazon).

---

## **3. Database Systems Concepts**

**Definition:**
A database system is a collection of programs that enables users to create, maintain, and manipulate
databases.

**Properties:**

- **Data Independence:** Changes in data structure do not affect application programs.

- **Data Integrity:** Ensures accuracy and consistency.

- **Data Security:** Protects data from unauthorized access.

- **Concurrency Control:** Allows multiple users to access data simultaneously.

**Importance:**

- Organizes and stores large amounts of data efficiently.

- Supports business operations and decision-making.

**Advantages:**

- Reduces data duplication.

- Improves data sharing and accessibility.

**Disadvantages:**

- Can be complex and costly to set up and maintain.

**Types:**

- **Relational Database Management System (RDBMS):** Data stored in tables (e.g., MySQL, Oracle).

- **NoSQL Database:** Flexible schema for unstructured data (e.g., MongoDB, Cassandra).

- **Hierarchical and Network Databases:** Older models, less common today.

**Examples:**
- Banking systems, university records, e-commerce websites.

---

## **4. Database Design**

**Definition:**

Database design is the process of structuring a database by defining tables, fields, relationships, and
constraints.

**Properties:**

- **Conceptual Design:** High-level view using Entity-Relationship (ER) diagrams.

- **Logical Design:** Detailed structure (tables, keys, relationships).

- **Physical Design:** How data is stored on hardware.

**Importance:**

- Ensures data consistency and integrity.

- Makes data retrieval efficient.

**Advantages:**

- Easier maintenance and scalability.

- Reduces data redundancy.

**Disadvantages:**

- Poor design can lead to data anomalies and inefficiency.


**Types:**

- **Normalized Design:** Follows rules to eliminate redundancy.

- **Denormalized Design:** Combines tables for faster reads (used in some analytics).

**Example:**

Designing a library database with tables for books, authors, borrowers, and loans.

---

## **5. Final Database Project**

**Definition:**

A practical project that applies database concepts to solve a real-world problem.

**Key Steps:**

1. Identify the problem (e.g., library management).

2. Design the database (ER diagram, tables, keys).

3. Implement the database using SQL.

4. Test and document the system.

**Importance:**

- Demonstrates practical skills.

- Prepares for real-world database tasks.

**Example:**
Building a student registration system.

---

## **6. Notes on Normalization**

**Definition:**

Normalization is the process of organizing data in a database to reduce redundancy and improve data
integrity.

**Properties:**

- Divides large tables into smaller, related tables.

- Uses primary and foreign keys to link tables.

**Importance:**

- Prevents data anomalies (insertion, update, deletion).

- Saves storage space.

**Advantages:**

- Easier data maintenance and updates.

- Improves data integrity.

**Disadvantages:**

- Can make queries more complex and slower.

**Types (Normal Forms):**


- **1NF (First Normal Form):** No repeating groups.

- **2NF (Second Normal Form):** No partial dependencies.

- **3NF (Third Normal Form):** No transitive dependencies.

**Example:**

Splitting a customer table into separate tables for customer info and orders.

---

## **7. Report of the SQL Lab**

**Definition:**

A summary of hands-on SQL exercises, showing how to create and manipulate database tables.

**Key Operations:**

- **CREATE TABLE:** Defines a new table.

- **INSERT INTO:** Adds new data.

- **SELECT:** Retrieves data.

- **UPDATE:** Modifies data.

- **DELETE:** Removes data.

**Examples:**

```sql

CREATE TABLE Students (ID INT, Name VARCHAR(50));

INSERT INTO Students VALUES (1, 'John Doe');


SELECT * FROM Students;

UPDATE Students SET Name = 'Jane Doe' WHERE ID = 1;

DELETE FROM Students WHERE ID = 1;

```

---

## **8. Types of Databases**

| Type | Description | Example |

|-------------------|---------------------------------------|------------------|

| Relational | Data in tables with relationships | MySQL, Oracle |

| NoSQL | Flexible, handles unstructured data | MongoDB, Redis |

| Hierarchical | Tree-like structure | IBM IMS |

| Network | Complex, many-to-many relationships | IDMS |

| Object-Oriented | Stores data as objects | ObjectDB |

| Cloud | Hosted online, scalable | Amazon RDS |

---

## **YouTube Video Resources**

- [Big Data Analytics Explained | Simplilearn](https://www.youtube.com/watch?v=5P7I-xPq8u8)

- [Big Data: Challenges and Opportunities | Edureka](https://www.youtube.com/watch?


v=Q2V2hJ6k4vQ)

- [Database Concepts | Neso Academy](https://www.youtube.com/watch?v=ztHopE5Wnpc)


- [Database Design Course - Learn how to design and plan a database for
beginners](https://www.youtube.com/watch?v=ztHopE5Wnpc)

- [How to Create a Simple Database Project |


ProgrammingKnowledge](https://www.youtube.com/watch?v=HXV3zeQKqGY)

- [Database Normalization Explained in Simple English | TechTFQ](https://www.youtube.com/watch?


v=UrYLYV7WSHM)

- [SQL Tutorial - Full Database Course for Beginners |


freeCodeCamp.org](https://www.youtube.com/watch?v=HXV3zeQKqGY)

- [Types of Databases | Simply Explained](https://www.youtube.com/watch?v=6yq7v1hA3VQ)

---

# SAMPLE EXAM QUESTIONS AND SOLUTIONS

---

## **Exam Paper 1: Database Concepts and SQL**

### **SECTION A: DATABASE CONCEPTS**

**1. What is a Database Management System (DBMS)?**

A DBMS is software that allows users to create, store, manage, and retrieve data from databases
efficiently.

*Example:* MySQL, Oracle, MongoDB.

---
**2. Explain with examples, the features, terminologies as used in data modeling like Entity, Entity-
relationship, and Relational model.**

- **Entity:** An object or thing in the real world with an independent existence (e.g., Student, Book).

- **Entity-Relationship (ER):** A diagram that shows entities and their relationships (e.g., Student
"borrows" Book).

- **Relational Model:** Data is organized in tables (relations). Each table has rows (records) and
columns (attributes).

*Example:*

- Entity: Student (attributes: StudentID, Name)

- ER: Student borrows Book

- Relational: Table STUDENT(StudentID, Name), Table BOOK(BookID, Title)

---

**3. State and explain any four functions of a database management system.**

- **Data Storage Management:** Efficiently stores large amounts of data.

- **Data Retrieval:** Allows users to query and get data quickly.

- **Data Security:** Controls access to data.

- **Backup and Recovery:** Protects data from loss.

---

**4. State two reasons why you must perform database normalization and state any three
disadvantages associated with normalization.**

**Reasons:**

- To reduce data redundancy.


- To improve data integrity.

**Disadvantages:**

- Complex queries.

- Slower data retrieval for complex joins.

- Increased number of tables.

---

**5. Using diagram or notation, distinguish between centralized database architecture and distributed
database architecture.**

**Centralized:**

All data is stored in one location (single server).

**Distributed:**

Data is spread across multiple locations/servers.

**Diagram:**

- Centralized:

```

Users --> [Single Database Server]

```

- Distributed:

```

Users --> [Server 1]


--> [Server 2]

--> [Server 3]

```

---

**6. Set of instructions to include:**

**a) Write a database table for a Student with fields: StudentID, Name, Age, Department.**

```sql

CREATE TABLE Student (

StudentID INT PRIMARY KEY,

Name VARCHAR(50),

Age INT,

Department VARCHAR(50)

);

```

**b) Insert two records into the table.**

```sql

INSERT INTO Student VALUES (1, 'John Doe', 20, 'Computer Science');

INSERT INTO Student VALUES (2, 'Jane Smith', 22, 'Engineering');

```

**c) Write a query to select all students from 'Computer Science'.**

```sql

SELECT * FROM Student WHERE Department = 'Computer Science';

```
**d) Update the Age of 'Jane Smith' to 23.**

```sql

UPDATE Student SET Age = 23 WHERE Name = 'Jane Smith';

```

---

### **SECTION B: Structured Query Language (SQL) Table**

*Write SQL queries based on given sample data (not fully visible in the image). Example:*

```sql

SELECT * FROM TableName WHERE Condition;

```

---

## **Exam Paper 2: General Computer Science**

### **Section A**

**1. Define computer, data, information, and database.**

- **Computer:** An electronic device that processes data and performs tasks.

- **Data:** Raw facts or figures (e.g., numbers, text).

- **Information:** Processed data that is meaningful.

- **Database:** An organized collection of related data.


---

**2. Give three (3) characteristics of a database management system.**

- Data integrity and accuracy.

- Data security.

- Supports multiple users.

---

**3. Trace the trend of development of the DBMS till the present.**

- **File-based systems:** Early storage, no structure.

- **Hierarchical/Network DBMS:** Tree or network structures.

- **Relational DBMS:** Tables, SQL (most common today).

- **NoSQL/Cloud DBMS:** Handles big data, unstructured data, scalable.

---

**4. Name two agencies for the Nigerian National Programming skills event for secondary schools.**

*Example answers: NITDA, NCC, Ministry of Education.*

---

**5. Write the difference between data and information.**

- **Data:** Unprocessed raw facts.


- **Information:** Processed, meaningful output from data.

---

**6. Write the difference between a file storage and a database storage system.**

- **File Storage:** Data stored in files, less structure, harder to search.

- **Database Storage:** Data stored in tables, structured, easy to search and manage.

---

### **Section B**

**1. Write a simple flowchart to calculate the sum of two numbers.**

*Draw a flowchart: Start → Input A, B → Sum = A + B → Output Sum → End*

---

**2. Write a simple algorithm to find the largest of three numbers.**

```plaintext

Step 1: Input A, B, C

Step 2: If A > B and A > C, then Largest = A

Else if B > C, then Largest = B

Else Largest = C

Step 3: Output Largest

```
---

**3. Write a short note on the following:**

- **a) Relational database:**

Stores data in tables with rows and columns. Uses keys to link tables. Most common type (e.g.,
MySQL).

- **b) Hierarchical database:**

Organizes data in a tree-like structure. Parent-child relationships. Used in early DBMS.

- **c) Network database:**

More complex relationships (many-to-many). Used in large, legacy systems.

---

**4. Write a short note on normalization.**

Normalization is the process of organizing data in a database to reduce redundancy and improve
integrity. It involves dividing large tables into smaller, related ones and using keys to link them.
Normalization is essential for efficient database design but can make queries more complex.

---

**5. Write a short note on SQL.**

SQL (Structured Query Language) is the standard language used to communicate with relational
databases. It is used to create, read, update, and delete data (CRUD operations). Examples include
SELECT, INSERT, UPDATE, DELETE.
---

**6. Write a short note on primary key and foreign key.**

- **Primary Key:**

A unique identifier for each record in a table (e.g., StudentID).

- **Foreign Key:**

A field in one table that links to the primary key in another table, establishing a relationship.

---

# END OF DOCUMENT

---

**Tips:**

- Review the summaries and sample answers above.

- Practice SQL queries using any free online SQL editor.

- Watch the recommended YouTube videos for visual explanations.

If you need more sample questions, answers, or further explanations, just ask. Good luck with your
exam!

Citations:

[1] Screenshot-13.jpg https://pplx-res.cloudinary.com/image/upload/v1750222588/user_uploads/


75252087/7e1085c3-de16-43eb-91cf-654922df2abf/Screenshot-13.jpg
[2] Screenshot-14.jpg https://pplx-res.cloudinary.com/image/upload/v1750222588/user_uploads/
75252087/965f42c0-03f6-4bfe-b749-3c7b9bc8550b/Screenshot-14.jpg

You might also like