SQL Examples

MySQL Tutorials for Business Analyst: How to use Index in MySQL

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: How to use Index in MySQL.   MySQL Index Tutorial – Create, Add & Drop What is an Index? Indexes in MySQL sort data in an organized sequential way. They are created on the column(s) that will be …

MySQL Tutorials for Business Analyst: How to use Views in MySQL

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: How to use Views in MySQL.   Views in MySQL Tutorial: Create, Join & Drop with Examples What are views? VIEWS are virtual tables that do not store any data of their own but display data stored in other …

MySQL Tutorials for Business Analyst: How to use Unions in MySQL

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: How to use Unions in MySQL.   MySQL UNION – Complete Tutorial What is a union? Unions combine the results from multiple SELECT queries into a consolidated result set. The only requirements for this to work is that …

MySQL Tutorials for Business Analyst: How to use Joins in MySQL

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: How to use Joins in MySQL.   MySQL JOINS Tutorial: INNER, OUTER, LEFT, RIGHT, CROSS What are JOINS? Joins help retrieving data from two or more database tables. The tables are mutually related using primary and foreign keys. …

MySQL Tutorials for Business Analyst: How to use Sub-Queries in MySQL

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: How to use Sub-Queries in MySQL.   MySQL SubQuery Tutorial with Examples What are sub queries? A sub query is a select query that is contained inside another query. The inner select query is usually used to determine …

MySQL Tutorials for Business Analyst: How to use Limit keyword in MySQL

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: How to use Limit keyword in MySQL.   MySQL LIMIT & OFFSET with Examples What is the LIMIT keyword? The limit keyword is used to limit the number of rows returned in a  query result. It can be …

MySQL Tutorials for Business Analyst: How to use Alter, Drop and Rename function in MySQL

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: MySQL Tutorials for Business Analyst: How to use Alter, Drop and Rename function in MySQL.   MYSQL – ALTER, DROP, RENAME, MODIFY WHAT IS THE ALTER COMMAND? As the saying goes Change is the only constant With time business …

MySQL Tutorials for Business Analyst: How to use Auto Increment in MySQL

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: MySQL Tutorials for Business Analyst: How to use Auto Increment in MySQL.   MySQL AUTO_INCREMENT with Examples What is auto increment? Auto Increment is a function that operates on numeric data types. It automatically generates sequential numeric values every time that …

MySQL Tutorials for Business Analyst: MySQL Aggregate Functions Tutorial

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: MySQL Tutorials for Business Analyst: MySQL Aggregate Functions Tutorial.   MySQL Aggregate Functions Tutorial : SUM, AVG, MAX, MIN , COUNT, DISTINCT Aggregate Functions are all about Performing  calculations on multiple rows Of a single column of a …

MySQL Tutorials for Business Analyst: MySQL Regular Expressions

(SQL examples for Beginners) In this end-to-end example, you will learn – SQL Tutorials for Business Analyst: MySQL Tutorials for Business Analyst: MySQL Regular Expressions.   MySQL Regular Expressions (REGEXP) with Syntax & Examples What are regular expressions? Regular Expressions help search data matching complex criteria.  We looked at wildcards in the previous tutorial. If …