0% found this document useful (0 votes)
19 views7 pages

Database

Introduction to database Ms access

Uploaded by

Nura Muhammad
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)
19 views7 pages

Database

Introduction to database Ms access

Uploaded by

Nura Muhammad
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

Certainly!

Here's a comprehensive set of lecture notes for your class on databases and Microsoft Access,
complete with definitions, examples, and step-by-step instructions.

---

## **1. What is a Database?**

A **database** is an organized collection of data that can be easily accessed, managed, and updated.

### 🔹 Examples:

1. **Library System**: Stores information about books, authors, and borrowers.

2. **Hospital Records**: Maintains patient details, medical history, and treatment plans.

3. **School Management System**: Contains data on students, courses, and grades.

---

## 📂 **2. Types of Databases**

Databases come in various types, each suited for different applications.

### 🔹 a. **Relational Databases**

- **Definition**: Organize data into tables with rows and columns.

- **Examples**:

1. **MySQL**
2. **PostgreSQL**

3. **Oracle Database**

### 🔹 b. **Hierarchical Databases**

- **Definition**: Data is structured in a tree-like format.

- **Examples**:

1. **IBM Information Management System (IMS)**

2. **Windows Registry**

3. **XML Data Storage**

### 🔹 c. **Object-Oriented Databases**

- **Definition**: Store data as objects, similar to object-oriented programming.

- **Examples**:

1. **db4o**

2. **ObjectDB**

3. **Versant Object Database**

---

## 🔗 **3. Relational Databases**

A **Relational Database** uses tables to represent data and relationships between those data.
### 🔹 Key Concepts:

- **Tables**: Store data in rows and columns.

- **Primary Key**: A unique identifier for each record.

- **Foreign Key**: A field in one table that links to the primary key in another.

### 🔹 Example:

**Students Table**:

| StudentID | Name | CourseID |

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

|1 | Alice | 101 |

|2 | Bob | 102 |

**Courses Table**:

| CourseID | CourseName |

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

| 101 | Math |

| 102 | Science |

Here, `CourseID` in the Students table is a foreign key linking to the Courses table.

---
## **4. Introduction to Microsoft Access**

**Microsoft Access** is a database management system that combines a graphical user interface with
software development tools.

### 🔹 Features:

- **Tables**: Store data.

- **Queries**: Retrieve specific data.

- **Forms**: User-friendly data entry.

- **Reports**: Format data for printing.

---

## **5. Steps to Create a Database in MS Access**

1. **Open Microsoft Access**.

2. **Select** "Blank Database".

3. **Enter a name** for your database.

4. **Click** "Create".

---

## 📋 **6. Creating Tables in MS Access**


1. **Click** on the "Create" tab.

2. **Select** "Table Design".

3. **Define Fields**:

- **Field Name**: e.g., `StudentID`

- **Data Type**: e.g., `Number`

4. **Set Primary Key**:

- **Right-click** on the field.

- **Select** "Primary Key".

5. **Save the Table**:

- **Click** "Save".

- **Enter Table Name**.

---

## 🔎 **7. Creating Queries in MS Access**

1. **Click** on the "Create" tab.

2. **Select** "Query Design".

3. **Add Tables**:

- **Double-click** on tables to add.

- **Click** "Close".

4. **Add Fields**:

- **Double-click** on fields to include.

5. **Set Criteria** (optional):

- **Enter** conditions in the "Criteria" row.


6. **Run the Query**:

- **Click** "Run" (red exclamation mark).

7. **Save the Query**:

- **Click** "Save".

- **Enter Query Name**.

---

## 🧾 **8. Creating Forms in MS Access**

1. **Select** the table or query.

2. **Click** on the "Create" tab.

3. **Choose** "Form" or "Form Wizard".

4. **Customize** the form layout.

5. **Save the Form**:

- **Click** "Save".

- **Enter Form Name**.

---

## 📄 **9. Creating Reports in MS Access**

1. **Select** the table or query.

2. **Click** on the "Create" tab.

3. **Choose** "Report" or "Report Wizard".


4. **Design** the report layout.

5. **Save the Report**:

- **Click** "Save".

- **Enter Report Name**.

---

If you need this content in a specific format, such as a Word document or PowerPoint presentation, feel
free to let me know!

You might also like