A Brief Guide to SQL

By Prajwal Haniya

In this notes I use MySQL for writing all queries. So, make sure to install the MySQL server in your local machine.

Below are the links which may be helpful to you if you are using Ubuntu.

In order to understand the fundamentals such as what is SQL? What are the differences between SQL & NoSQL? How to create a database and tables? and for any such questions you can refer to the below links


August 21, 2022

Query Mechanics

Select:

SELECT DISTINCT column_name 
FROM table_name  
ORDER BY column_name

from:

Tables: 4 different types