Learn SQL in 24 Hours
By Alex Nordeen
5/5
()
About this ebook
Databases can be found in almost all software applications. Infact it's hard to find a software that doesn’t use a database. SQL is the standard language to query a database. SQL stand for: Structured Query Language. SQL provides basic to advance commands to retrieve, update, delete, insert data into database.
This book is designed for beginners with little or no prior database experience.
Table Of Content
Here is what you will learn:
Chapter 1: Introduction to Database and MySQL
What is Data?
What is a database?
What is a Database Management System?
Types of DBMS
What is SQL?
What is NoSQL?
Chapter 2: Install MySQL workbench
What is MySQL?
Why use MySQL?
Introducing MySQL Workbench
MySQL workbench- Modeling and Design tool
MySQL workbench - SQL development tool
Install MySQL workbench Guide
Chapter 3: Introduction To Database Design
Why Database Design is Important?
Database development life cycle
Requirements analysis
Database designing
Implementation
Types of Database Techniques
Chapter 4: Database Normalization
What is Normalization?
1NF Rules
What is Composite Key
2NF Rules
3NF Rules
Boyce-Codd Normal Form (BCNF)
Chapter 5: ER Modeling
What is ER Modeling?
Enhanced Entity Relationship (EER) Model
Why use ER Model?
Entities in the "MyFlix" library
Defining the relationships among entities
Chapter 6: How To Create A Database
Create Database
Creating Tables MySQL
Data types
MySQL workbench ER diagram forward Engineering
Chapter 7: How to use SELECT in MySQL
Chapter 8: Where clause in MySQL
Chapter 9: How to use INSERT Into in MySQL
Chapter 10: How to Delete & Update data in MySQL
Chapter 11: ORDER BY, DESC and ASC
Chapter 12: Group By
Chapter 13: Wildcards
Chapter 14: Regular Expressions
Chapter 15: MySQL PHP
Chapter 16: Aggregate Function in MySQL
Chapter 17: Null value & Keyword in MySQL
Chapter 18: Auto Increment
Chapter 19: Alter, Drop & Rename
Chapter 20: Limit keyword
Chapter 21: Sub-Queries
Chapter 22: Joins
Chapter 23: Unions
Chapter 24: Views
Chapter 25: Index in MySQL
Read more from Alex Nordeen
Learn SAP Basis in 24 Hours Rating: 5 out of 5 stars5/5Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Learn SAP MM in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Learn HANA in 24 Hours Rating: 5 out of 5 stars5/5Learn SAP SD in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn MongoDB in 24 Hours Rating: 5 out of 5 stars5/5Learn SAP BI in 24 Hours Rating: 3 out of 5 stars3/5Learn PMP in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SAP HR in 24 Hours Rating: 5 out of 5 stars5/5Business Analysis : Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Data Warehousing in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Software Testing in 24 Hours Rating: 0 out of 5 stars0 ratingsC++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn PHP in 24 Hours Rating: 0 out of 5 stars0 ratingsHacking : Guide to Computer Hacking and Penetration Testing Rating: 5 out of 5 stars5/5Learn Excel in 24 Hours Rating: 4 out of 5 stars4/5Learn Selenium in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn SQLite in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn R Programming in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn AngularJS in 24 Hours Rating: 0 out of 5 stars0 ratingsC# for Beginners: Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Design and Analysis of Algorithms in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn DBMS in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn C Programming in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Operating System in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Hadoop in 24 Hours Rating: 0 out of 5 stars0 ratingsLearn Cassandra in 24 Hours Rating: 0 out of 5 stars0 ratings
Related to Learn SQL in 24 Hours
Related ebooks
SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5SQL CODING FOR BEGINNERS: Step-by-Step Beginner's Guide to Mastering SQL Programming and Coding (2022 Crash Course for Newbies) Rating: 0 out of 5 stars0 ratingsLearn Data Warehousing in 24 Hours Rating: 0 out of 5 stars0 ratingsMastering PL/SQL Through Illustrations: From Learning Fundamentals to Developing Efficient PL/SQL Blocks (English Edition) Rating: 0 out of 5 stars0 ratingsOracle SQL In 10 Minutes Rating: 5 out of 5 stars5/5SQL Interview Questions: A complete question bank to crack your ANN SQL interview with real-time examples Rating: 0 out of 5 stars0 ratingsLearn SQL with MySQL: Retrieve and Manipulate Data Using SQL Commands with Ease Rating: 0 out of 5 stars0 ratingsIntroduction to DBMS: Designing and Implementing Databases from Scratch for Absolute Beginners Rating: 0 out of 5 stars0 ratingsCreating your MySQL Database: Practical Design Tips and Techniques Rating: 3 out of 5 stars3/5Learn SQLite in 24 Hours Rating: 0 out of 5 stars0 ratingsSQL Server: Tips and Tricks - 1 Rating: 5 out of 5 stars5/5Relational Database Design and Implementation Rating: 5 out of 5 stars5/5Learn MongoDB in 24 Hours Rating: 5 out of 5 stars5/5Introduction to Oracle Database Administration Rating: 5 out of 5 stars5/5Advanced Oracle PL/SQL Developer's Guide - Second Edition Rating: 5 out of 5 stars5/5SQL Tutorial For Beginners Rating: 0 out of 5 stars0 ratingsRelational Database Design and Implementation: Clearly Explained Rating: 0 out of 5 stars0 ratingsOracle SQL Developer Rating: 0 out of 5 stars0 ratingsConcise Oracle Database For People Who Has No Time Rating: 0 out of 5 stars0 ratingsOracle Quick Guides: Part 1 - Oracle Basics: Database and Tools Rating: 0 out of 5 stars0 ratingsOracle Quick Guides: Part 3 - Coding in Oracle: SQL and PL/SQL Rating: 0 out of 5 stars0 ratingsOracle Database 12c Quickstart Rating: 5 out of 5 stars5/5My Part-Time Study Notes on Mssql Server Rating: 0 out of 5 stars0 ratingsSQL Server 2016 Developer's Guide Rating: 0 out of 5 stars0 ratingsOracle Quick Guides: Part 2 - Oracle Database Design Rating: 0 out of 5 stars0 ratingsSQL Server 2014 Development Essentials Rating: 5 out of 5 stars5/5Power BI DAX: A Guide to Using Basic Functions in Data Analysis Rating: 0 out of 5 stars0 ratings
Programming For You
Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5OneNote: The Ultimate Guide on How to Use Microsoft OneNote for Getting Things Done Rating: 1 out of 5 stars1/5Hacking: Ultimate Beginner's Guide for Computer Hacking in 2018 and Beyond: Hacking in 2018, #1 Rating: 4 out of 5 stars4/5Python Projects for Beginners: A Ten-Week Bootcamp Approach to Python Programming Rating: 0 out of 5 stars0 ratingsWeb Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsPython: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5C++ Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsHTML in 30 Pages Rating: 5 out of 5 stars5/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Beginning Programming with Python For Dummies Rating: 3 out of 5 stars3/5Raspberry Pi Cookbook for Python Programmers Rating: 0 out of 5 stars0 ratingsPython Machine Learning By Example Rating: 4 out of 5 stars4/5Professional C++ Rating: 2 out of 5 stars2/5
Reviews for Learn SQL in 24 Hours
2 ratings1 review
- Rating: 5 out of 5 stars5/5It helped me get a real grasp on SQL databases & queries for my new job. Big help for any beginner getting started. Although don't get me wrong its a dry read, so just power through it will help.
Book preview
Learn SQL in 24 Hours - Alex Nordeen
Learn SQL in 24 Hours
By Alex Nordeen
Copyright 2021 - All Rights Reserved – Alex Nordeen
ALL RIGHTS RESERVED. No part of this publication may be reproduced or transmitted in any form whatsoever, electronic, or mechanical, including photocopying, recording, or by any informational storage or retrieval system without express written, dated and signed permission from the author.
Table Of Content
Chapter 1: Introduction to Database and MySQL
What is Data?
What is a database?
What is a Database Management System?
Types of DBMS
What is SQL?
What is NoSQL?
Chapter 2: Install MySQL workbench
What is MySQL?
Why use MySQL?
Introducing MySQL Workbench
MySQL workbench- Modeling and Design tool
MySQL workbench - SQL development tool
Install MySQL workbench Guide
Chapter 3: Introduction To Database Design
Why Database Design is Important?
Database development life cycle
Requirements analysis
Database designing
Implementation
Types of Database Techniques
Chapter 4: Database Normalization
What is Normalization?
1NF Rules
What is Composite Key
2NF Rules
3NF Rules
Boyce-Codd Normal Form (BCNF)
Chapter 5: ER Modeling
What is ER Modeling?
Enhanced Entity Relationship (EER) Model
Why use ER Model?
Entities in the MyFlix
library
Defining the relationships among entities
Chapter 6: How To Create A Database
Create Database
Creating Tables MySQL
Data types
MySQL workbench ER diagram forward Engineering
Chapter 7: How to use SELECT in MySQL
Chapter 8: Where clause in MySQL
Chapter 9: How to use INSERT Into in MySQL
Chapter 10: How to Delete & Update data in MySQL
Chapter 11: ORDER BY, DESC and ASC
Chapter 12: Group By
Chapter 13: Wildcards
Chapter 14: Regular Expressions
Chapter 15: MySQL PHP
Chapter 16: Aggregate Function in MySQL
Chapter 17: Null value & Keyword in MySQL
Chapter 18: Auto Increment
Chapter 19: Alter, Drop & Rename
Chapter 20: Limit keyword
Chapter 21: Sub-Queries
Chapter 22: Joins
Chapter 23: Unions
Chapter 24: Views
Chapter 25: Index in MySQL
Chapter 1: Introduction to Database and MySQL
What does sql stands for? SQL stand for: Structured Query Language
Before we learn about database , let's understand -
What is Data?
In simple words data can be facts related to any object in consideration.
For example your name, age, height, weight, etc are some data related to you.
A picture , image , file , pdf etc can also be considered data.
What is a database?
Database DefinationA database is a systematic collection of data. Databases support storage and manipulation of data. Databases make data management easy. Let's discuss few examples.
An online telephone directory would definitely use database to store data pertaining to people, phone numbers, other contact details, etc.
Your electricity service provider is obviously using a database to manage billing , client related issues, to handle fault data, etc.
Let's also consider the facebook. It needs to store, manipulate and present data related to members, their friends, member activities, messages, advertisements and lot more.
We can provide countless number of examples for usage of databases .
What is a Database Management System (DBMS)?
Database Management System (DBMS) is a collection of programs which enables its users to access database, manipulate data, reporting / representation of data .
It also helps to control access to the database.
Database Management Systems are not a new concept and as such had been first implemented in 1960s.
Charles Bachmen's Integrated Data Store(IDS) is said to be the first DBMS in history.
With time database technologies evolved a lot while usage and expected functionalities of databases have been increased immensely.
Types of DBMS
Let's see how the DBMS family got evolved with the time. Following diagram shows the evolution of DBMS categories.
There are 4 major types of DBMS. Let's look into them in detail.
Hierarchical- this type of DBMS employs the parent-child
relationship of storing data. This type of DBMS is rarely used nowadays. Its structure is like a tree with nodes representing records and branches representing fields. The windows registry used in Windows XP is an example of a hierarchical database. Configuration settings are stored as tree structures with nodes.
Network DBMS- this type of DBMS supports many-to many relations. This usually results in complex database structures. RDM Server is an example of a database management system that implements the network model.
Relational DBMS- this type of DBMS defines database relationships in form of tables, also known as relations. Unlike network DBMS, RDBMS does not support many to manyrelationships.RelationalDBMS usually have pre-defined data types that they can support. This is the most popular DBMS type in the market. Examples of relational database management systems include MySQL, Oracle, and Microsoft SQL Server database.
Object Oriented Relation DBMS- this type supports storage of new data types. The data to be stored is in form of objects. The objects to be stored in the database have attributes (i.e. gender, ager) and methods that define what to do with the data. PostgreSQL is an example of an object oriented relational DBMS.
What is SQL?
SQL Definition: Structured Query language (SQL) pronounced as S-Q-L
or sometimes as "See-Quel"is actually the standard language for dealing with Relational Databases.
SQL programming can be effectively used to insert, search, update, delete database records.
That doesn't mean SQL cannot do things beyond that.
In fact it can do lot of things including, but not limited to ,optimizing and maintenance of databases.
Relational databases like MySQL Database, Oracle, Ms SQL server, Sybase, etc uses SQL ! How to use sql syntaxes?
SQL syntaxes used in these databases are almost similar, except the fact that some are using few different syntaxes and even proprietary SQL syntaxes.
SQL Example
SELECT * FROM Members WHERE Age > 30
What is NoSQL ?
NoSQL is an upcoming category of Database Management Systems..Its main characteristic is its non-adherence to Relational Database Concepts. NOSQL means Not only SQL
.
Concept of NoSQL databases grew with internet giants such as Google, Facebook, Amazon etc who deal with gigantic volumes of data.
When you use relational database for massive volumes of data , the system starts getting slow in terms of response time.
To overcome this , we could of course scale up
our systems by upgrading our existing hardware.
The alternative to the above problem would be to distribute our database load on multiple hosts as the load increases.
This is known as scaling out
.
NOSQL database are non-relational databases that scale out better than relational databases and are designed with web applications in mind.
They do not use SQL to query the data and do not follow strict schemas like relational models.With NoSQL, ACID (Atomicity, Consistency, Isolation, Durability) features are not guaranteed always
Why it makes sense to learn SQL after NOSQL ?
With the advantages of NOSQL databases outlined above that scale out better than relational models, you might be thinking why one would still want to learn about SQL database?
Well, NOSQL databases are sort of highly specialized systems and have their special usage and limitations. NOSQL suit more for those who handles huge volumes of data. The vast majority, use relational databases and associated tools.
Relational databases have the following advantages over NOSQL databases;
SQL(relational) databases have a mature data storage and management model . This is crucial for enterprise users.
SQL databases support the notion of views which allow users to only see data that they are authorized to view. The data that they are not authorized to see is kept hidden from them.
SQL databases support stored proceduresqlwhich allow database developers to implement part of the business logic into the database.
SQL databases have better security models compared to NoSQL databases.
The world has not deviated from use of relational databases. There is growing a demand for professionals who can handle relational databases. Thus learning databases and SQL still holds merit.
Summary
DBMS stands for Database Management System.
We have four major types of DBMSs namely Hierarchical, Network, Relational, Object Oriented
The most widely used DBMS is the relational model that saves data in table formats. It uses SQL as the standard query language
SQL language is used toSqlquery a database
The database approach has many advantages when it comes to storing data compared to the traditional flat file based systems