MySQL

Databases with MYSQL


Progress
Reviewed: 0%
8 Tasks


MySQL is one of the most widely used open-source relational database management systems. As a software engineer, it is essential to have a solid understanding of SQL commands and MySQL server monitoring to be able to design, develop, and maintain efficient and robust databases.
In this course, you will learn the fundamentals of SQL commands, including data retrieval, modification, and management. You will also gain practical experience in creating and optimizing MySQL databases. You will get a comprehensive understanding of how to apply this knowledge to build efficient and reliable databases for your web applications.

Begin by creating a GitHub account.
1. Once you have your account, create a new repository with the name "skill_captain_mysql".
2. Inside this repository, organize your daily assignments by creating a separate folder for each day's work. Name each folder "day".
3. Make sure to add your assignments to the respective day's folder to keep them organized and easily accessible.
By following these steps, you'll have a GitHub account with a repository specifically designed for your MySQL assignments, neatly organized by day.



  • Day 3
  • CREATE Statement and Data Types

    Concept:



    Resources:



    Assignments:


    Create a MySQL database with a table Employees consisting of the following columns -
    - ID (Integer data type)
    - Name (Character data type
    - Email Address (Character data type)
    - Department (Character data type)
    - Date of Birth (Date data type)
    - Salary (Decimal data type)
    - Is Active (Boolean data type)
    Insert 2 rows of data into the table.



  • Day 7
  • Group by, Order by, Having

    Concept:



    Resources:



    Assignments:


    Consider the table structure given:

    
    CREATE TABLE Employees (
      ID INT,
      Name VARCHAR(255),
      Department VARCHAR(255)
    );
    
    

    Write a SQL query to display the total number of employees in each department, sorted by the department with the highest number of employees first, and only show departments with more than 2 employees.



  • Day 8
  • Joins - Cross, Inner, Outer

    Concept:



    Resources:



    Assignments:


    Suppose you have two tables - one containing employee information and the other containing department information. Schemas are given below:

    
    CREATE TABLE Employee (
      EmployeeID INT,
      EmployeeName VARCHAR(255),
      DepartmentID INT
    );
    
    
    CREATE TABLE Department (
      DepartmentID INT,
      DepartmentName VARCHAR(255)
    );
    

    1. Write a SQL query to return a list of all possible combinations of employees and departments.
    2. Write a SQL query to return the list of employees who belong to atleast one department.
    3. Write a SQL query to return the list of all employees and their department details, including those employees who do not belong to any department or departments which do not have any employees.
    4. Write a SQL query to return the list of all employees, along with their department details if they belong to a department.
    5. Write a SQL query to return the list of all departments, along with the employee details if they have atleast one employee belonging to the department.



×

Let's Go!

Congratulations on getting started. Here is a little reward for you...

×

10

Going to the next task in