Learn SQL using MySQL in One Day and Learn It Well: SQL for beginners with Hands-on Project
By Jamie Chan
()
Related to Learn SQL using MySQL in One Day and Learn It Well
Related ebooks
SQL| KILLING STEPS TO INTRODUCE SQL DATABASES Rating: 0 out of 5 stars0 ratingsJava: The Bottom Line Rating: 0 out of 5 stars0 ratingsInstalling SQL Server 2012 Step by Step Rating: 0 out of 5 stars0 ratingsSQL Programming & Database Management For Noobee Rating: 0 out of 5 stars0 ratingsSql : The Ultimate Beginner to Advanced Guide To Master SQL Quickly with Step-by-Step Practical Examples Rating: 0 out of 5 stars0 ratingsJava Programming for Kids: Learn Java Step By Step and Build Your Own Interactive Calculator for Fun! Rating: 2 out of 5 stars2/5Performance Project Rating: 0 out of 5 stars0 ratingsPro SQL Server Internals Rating: 0 out of 5 stars0 ratingsMake Bootstrap Themes Rating: 0 out of 5 stars0 ratingsComputer Programming: From Beginner to Badass—JavaScript, HTML, CSS, & SQL Rating: 3 out of 5 stars3/5ConfigMgr - An Administrator's Guide to Deploying Applications using PowerShell Rating: 5 out of 5 stars5/5Visual Basic 2010 Coding Briefs Data Access Rating: 5 out of 5 stars5/5MySQL Management and Administration with Navicat Rating: 0 out of 5 stars0 ratingsAn Ultimate Guide to Kali Linux for Beginners Rating: 3 out of 5 stars3/5Basic Java Programming for Kids and Beginners Rating: 0 out of 5 stars0 ratingsPractical Ethical Hacking from Scratch Rating: 5 out of 5 stars5/5MySQL Admin Cookbook LITE: Replication and Indexing Rating: 4 out of 5 stars4/5Node.js: Novice to Ninja Rating: 0 out of 5 stars0 ratingsOracle : Data Manipulation, Knowledge Discovery & Reporting Using Ms Access Rating: 0 out of 5 stars0 ratingsPractical Suggestions For Microsoft Windows Rating: 3 out of 5 stars3/5Computer Productivity Book 3. Use AutoHotKey to License & Deploy Your Scripts to Sell: AutoHotKey productivity, #3 Rating: 0 out of 5 stars0 ratingsDB2 11.1 for LUW: Basic Training for Application Developers Rating: 0 out of 5 stars0 ratingsJava: Beginner's Guide to Programming Code with Java: Java Computer Programming Rating: 0 out of 5 stars0 ratingsJava: Beginner's Guide to Programming Code with Java Rating: 0 out of 5 stars0 ratingsMySQL Admin Cookbook LITE: Configuration, Server Monitoring, Managing Users Rating: 4 out of 5 stars4/5Learn Microservices - ASP.NET Core and Docker Rating: 0 out of 5 stars0 ratingsSimply SQL: The Fun and Easy Way to Learn Best-Practice SQL Rating: 4 out of 5 stars4/5Beginning Mobile Application Development in the Cloud Rating: 0 out of 5 stars0 ratings
Databases For You
The AI Bible, Making Money with Artificial Intelligence: Real Case Studies and How-To's for Implementation Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Blockchain For Dummies Rating: 5 out of 5 stars5/5Access 2019 For Dummies Rating: 0 out of 5 stars0 ratingsSQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Star Schema The Complete Reference Rating: 5 out of 5 stars5/5COMPUTER SCIENCE FOR ROOKIES Rating: 0 out of 5 stars0 ratingsDB2 9.7 for Linux, UNIX, and Windows Database Administration: Certification Study Notes Rating: 5 out of 5 stars5/5Tableau Cookbook – Recipes for Data Visualization Rating: 0 out of 5 stars0 ratingsLearn SQL in 24 Hours Rating: 5 out of 5 stars5/5Python Projects for Everyone Rating: 0 out of 5 stars0 ratingsDark Data: Why What You Don’t Know Matters Rating: 3 out of 5 stars3/5Learn Git in a Month of Lunches Rating: 0 out of 5 stars0 ratingsCompTIA DataSys+ Study Guide: Exam DS0-001 Rating: 0 out of 5 stars0 ratingsVisualizing Graph Data Rating: 0 out of 5 stars0 ratingsPractical Data Analysis Rating: 4 out of 5 stars4/5DBA's Guide to NoSQL Rating: 5 out of 5 stars5/5Simply SQL: The Fun and Easy Way to Learn Best-Practice SQL Rating: 4 out of 5 stars4/5Ultimate SQL Server and Azure SQL for Data Management and Modernization Rating: 0 out of 5 stars0 ratingsLearn SQL Server Administration in a Month of Lunches Rating: 3 out of 5 stars3/5Neo4j - A Graph Project Story Rating: 5 out of 5 stars5/5Blockchain: A Practical Guide to Developing Business, Law, and Technology Solutions Rating: 5 out of 5 stars5/5Cloud Computing Playbook: 10 In 1 Practical Cloud Design With Azure, Aws And Terraform Rating: 0 out of 5 stars0 ratings35 Database Examples: A Database Reference Book For Anyone Rating: 5 out of 5 stars5/5The Data Model Resource Book: Volume 3: Universal Patterns for Data Modeling Rating: 0 out of 5 stars0 ratings
Reviews for Learn SQL using MySQL in One Day and Learn It Well
0 ratings0 reviews
Book preview
Learn SQL using MySQL in One Day and Learn It Well - Jamie Chan
Chapter 1: Introduction
Welcome to SQL and thank you so much for picking up my book. I sincerely hope that this book can help you master SQL fast and introduce you to the exciting world of databases.
This book adopts a hands-on approach to learning. As we progress from one chapter to another, we’ll be doing various exercises. You are strongly encouraged to follow along these exercises.
At the end of the book, we’ll also be working on a new project together. This project involves building a SQL database for a sports complex. We’ll learn to build the database, insert data, perform queries, write routines, views, cursors, and more.
Excited and ready to start embarking on our SQL learning journey? Let’s do it!
What is SQL?
Simply stated, SQL stands for Structured Query Language and is a language used to manage data stored in a relational database.
This brings us to the next question - What is a database?
A database is a collection of data organized in some format so that the data can be easily accessed, managed and updated. The predominant type of database is a relational database. Relational databases organize data in the form of tables. In addition, they contain queries, views and other elements to help us interact with the data.
In order to manage our database, we need to use a software application known as a database management system (DBMS).
Clear?
So far, we have the following terminologies:
1) SQL is a language
2) A database is a structured collection of data
3) A DBMS is a software that we use to manage our databases
With regards to DBMS, there are a large number of them available. Some are free to download and use while others are not. The most commonly used DBMS include MySQL, Oracle, Microsoft SQL Server and IBM DB2.
Each of these DBMS have their own versions of SQL. While this may sound intimidating, rest assured that all DBMS support the major SQL commands (such as SELECT, UPDATE, DELETE, INSERT) in a similar manner. Hence, if you know one version of SQL, it is very easy to pick up other versions.
In this book, we'll be using MySQL. This is one of the most popular DBMS available. Best of all, it’s free! From this point forward, whenever I mention SQL, I’m referring to the MySQL version.
Getting Ready to Code
In order to start using MySQL, we need to first download and install two applications: MySQL Server and My SQL Workbench.
Note that the instructions provided below are accurate as of March 2024. MySQL may update its download links or alter installation procedures in the future. In such cases, you can typically find the most up-to-date installation guides on YouTube by searching for terms like Installing MySQL on Windows
or Installing MySQL on Mac
and selecting the latest video with the highest number of views.
For the time being, let's proceed with installing the latest version of MySQL.
Installing MySQL applications
Windows
For Windows users, go to https://dev.mysql.com/downloads/installer/.
Scroll down and click on the second Download
button to download the application. You’ll be directed to another page. Scroll to the bottom of the page and click on No thanks, just start my download.
Once you have downloaded the program, double-click on the file and follow the instructions to install the software. When prompted for administrative permissions, click Yes
to grant the necessary permissions.
Next, you will be prompted to choose a setup type, select Custom
and click Next
.
You’ll be asked to select the products to