Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

0x0D. SQL - Introduction

Description

What you should learn from this project:

  • What’s a database
  • What’s a relational database
  • What does SQL stand for
  • What’s MySQL
  • How to create a database in MySQL
  • What does DDL and DML stand for
  • How to CREATE or ALTER a table
  • How to SELECT data from a table
  • How to INSERT, UPDATE or DELETE data
  • What are subqueries
  • How to use MySQL functions

  • Write a script that lists all databases of your MySQL server.
  • Write a script that creates the database hbtn_0c_0 in your MySQL server.
  • Write a script that deletes the database hbtn_0c_0 in your MySQL server.
  • Write a script that lists all the tables of a database in your MySQL server.
  • Write a script that creates a table called first_table in the current database in your MySQL server.
  • Write a script that prints the full description of the table first_table from the database hbtn_0c_0 in your MySQL server.
  • Write a script that lists all rows of the table first_table from the database hbtn_0c_0 in your MySQL server.
  • Write a script that inserts a new row in the table first_table (database hbtn_0c_0) in your MySQL server.
  • Write a script that displays the number of records with id = 89 in the table first_table of the database hbtn_0c_0 in your MySQL server.
  • Write a script that creates a table second_table in the database hbtn_0c_0 in your MySQL server and add multiples rows.
  • Write a script that lists all records of the table second_table of the database hbtn_0c_0 in your MySQL server.
  • Write a script that lists all records with a score >= 10 in the table second_table of the database hbtn_0c_0 in your MySQL server.
  • Write a script that updates the score of Bob to 10 in the table second_table.
  • Write a script that removes all records with a score <= 5 in the table second_table of the database hbtn_0c_0 in your MySQL server.
  • Write a script that computes the score average of all records in the table second_table of the database hbtn_0c_0 in your MySQL server.
  • Write a script that lists the number of records with the same score in the table second_table of the database hbtn_0c_0 in your MySQL server.
  • Write a script that lists all records of the table second_table of the database hbtn_0c_0 in your MySQL server.

Author