EvaRoets / SQL-introduction

This repo contains all the files for the SQL-intro, part of BeCode's Full Stack Junior Web Developer training.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQL-introduction πŸ“‘

database

🎯 Objectives

  • Learn how ro connect a website with a database
  • Explore SQL Basics
  • Further develop research skills

βœ”οΈ Specifications

  • Create a mySQL Database

🌱 Must-haves

1️⃣ Set-up

  • Install a database: MySQL (or MariaDB, but never both) This is included in your all in one pack you installed previously (Apache, MySQL, PHP).
  • Install a database manager
    • 🍎/🐧/🎀 PhpMyAdmin: runs in the browser for easy access, but never to be used in production (security concern).
    • 🍎/🐧/🎀 Datagrip
    • 🍎/🎀 TablePlus: good interface, limited open tabs in the free version.
    • 🍎 SequelAce: successor to SequelPro.
    • 🎀 HeidiSQL

2️⃣ Create a database: SQL-introduction

Make the following tables and populate them with some dummy data (have at least two entries for every table)

  • groups: id, name, location, start_date, max_participants
  • learners: id, name, email, active
  • coaches: id, name

3️⃣ Execute the following commands

  • Get all data from the groups database
  • Get the name and email of the first learner, and alias the name to learner_name
  • Update the start date of the first_group (make it two months later)
  • Introduce a new field status which can contain a long text indicating the reason for postponing (bonus points if it's a creative one).
  • Delete someone from the learners table as they've decided to become an astronaut.

🌻 Nice-to-haves

1️⃣ Try these more advanced commands

  • Find a technique to make the connection in the database between learner, group and coach
  • Select a coach and all related groups
  • Select a coach, all related groups and also the learners who are still active.

πŸ’ Extra nice-to-haves

  • Run your SQL commands from PHP, by connectin PHP to the database first.

About

This repo contains all the files for the SQL-intro, part of BeCode's Full Stack Junior Web Developer training.


Languages

Language:HTML 100.0%