# Databases

This module is part of the Backend specialism course and goes deep on databases, including SQL topics like CRUD, relationships and other advanced concepts like transactions, security, and deployment. It also covers different types of databases and their use cases.

| Week | Topic                                                                                                                 | Preparation                                                                                         | Lesson Plan                                                                                                         | Assignment                                                                                        |
| ---- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| 1.   | [Data Modeling and Relational Fundamentals](https://program.hackyourfuture.dk/course-content/backend/databases/week1) | [Preparation](https://program.hackyourfuture.dk/course-content/backend/databases/week1/preparation) | [Session Plan](https://program.hackyourfuture.dk/course-content/backend/databases/week1/session-plan) (for mentors) | [Assignment](https://program.hackyourfuture.dk/course-content/backend/databases/week1/assignment) |
| 2.   | [Database Security and Transactions](https://program.hackyourfuture.dk/course-content/backend/databases/week2)        | [Preparation](https://program.hackyourfuture.dk/course-content/backend/databases/week2/preparation) | [Session Plan](https://program.hackyourfuture.dk/course-content/backend/databases/week2/session-plan) (for mentors) | [Assignment](https://program.hackyourfuture.dk/course-content/backend/databases/week2/assignment) |

## Learning Goals

By the end of this module, you will be able to:

* [ ] Explain the purpose of databases in web applications
* [ ] Perform basic CRUD operations using SQL
* [ ] Understand and implement relationships between tables in SQL
* [ ] Write more complex SQL queries involving joins and aggregations
* [ ] Understand the use cases for different types of databases (SQL, NoSQL, Key-Value, Graph)
* [ ] Communicate the importance of database security
* [ ] Understand the most common security threats and how to mitigate them with best practices

## Prerequisites

You should have completed or understand the learning goals in the following modules before proceeding:

* [ ] [Foundation - Databases](https://program.hackyourfuture.dk/course-content/foundation/databases)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://program.hackyourfuture.dk/course-content/backend/databases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
