LogoLogo
Class SchedulesOfficial WebsiteMigraCode SyllabusHow to teach tech
  • 👩‍🏫Welcome to the MigraCode Volunteer Guide
  • General information
    • ℹ️About MigraCode
    • 🖱️Working with our students
    • 👥Volunteering roles
      • Teaching volunteer roles
      • Mentoring volunteer roles
      • Slack volunteer roles
  • Teaching instructions
    • 🖥️Basic computer literacy
      • Lesson 1: Introduction and Browser
      • Lesson 2: More browsing and Internet
      • Lesson 3: Mail and a taste of Drive
      • Lesson 4: Google Docs
      • Lesson 5: Google sheets
      • Lesson 6: Google slides
    • 👩‍💻Web development
      • Class Example
      • Teaching instructions
        • Introduction
          • 1 - Terminal and Visual Code
          • 2 - Git and Github
        • HTML/CSS
          • 1 - Semantic HTML and CSS
          • 2 - Responsive Web and layout
          • 3 - Bootstrap
        • JavaScript I
          • 1 - Hello Javascript
          • 2 - Expressions and loops
          • 3 - Arrays and callbacks
        • Javascript II
          • 1 - Javascript in the browser
          • 2 - Objects
          • 3 - Introduction to APIs
        • Javascript III
          • 1 - HTTP Protocols and ES6
          • 2 - Workshop Part 1
          • 3 - Workshop Part 2
        • React
          • 1 - Hello React
          • 2 - Reacting to changes
          • 3 - Fetching Data
        • NodeJS
          • 1 - Node and Express 101
          • 2 - APIs in Node
          • 3 - Workshop
        • Databases
          • 1 - Introduction to SQL
          • 2 - SQL with Node
          • 3 - CRUD with SQL and Node
    • 🛠️Professional Skills
      • Module 1: Soft skills
      • Module 2: Employability
      • Module 3: Working in projects
  • Useful Links
  • Class Schedules
  • Official Website
  • MigraCode Syllabus
  • How to teach tech
Powered by GitBook
On this page
  • Learning Objectives
  • Lessons

Was this helpful?

Export as PDF
  1. Teaching instructions
  2. Web development
  3. Teaching instructions

Databases

Learning Objectives

By the end of this lesson students should be able to

  • Explain why databases are needed in Web Development

  • Define what SQL is and what it is used for

  • Describe what table, rows and columns are used for in a relational database

  • Install and create a database using PostgreSQL

  • Create a table in a database using PostgreSQL

  • Insert data into a table using PostgreSQL

  • Retrieve data from a table using PostgreSQL

  • Retrieve data from a table using conditionals in PostgreSQL

  • List the different kinds of data that can be held in a PostgreSQL database

  • Add and remove columns in a pre-existing table using PostgreSQL using ALTER

  • Rename tables and columns in a pre-existing table using PostgreSQL using DELETE

  • Update rows in a pre-existing table using PostgreSQL using UPDATE

  • Combine tables together using PostgreSQL using INNER JOIN

  • Connect a PostgreSQL database to a NodeJS application

  • Retrieve data from a PostgreSQL database in a NodeJS application

  • Create an API endpoint that can add data to a database

  • Write code that effectively validates data before adding it to a database

  • Be aware of the dangers of SQL injection attacks, and how to avoid them

  • Create an API endpoint that can retrieve data from a database with multiple parameters

  • Create an API endpoint that can update data in a database

  • Create an API endpoint that can delete data in a database

Lessons

Previous3 - WorkshopNext1 - Introduction to SQL

Last updated 3 years ago

Was this helpful?

👩‍💻
1 - Introduction to SQL
2 - SQL with Node
3 - CRUD with SQL and Node