Data Analysis Using SQL
Introduction to the Topic:
What is PostgreSQL?
PostgreSQL is an advanced relational database system. PostgreSQL supports both relational (SQL) and non-relational (JSON) queries.It is a free and open-source relational database management system.
How I use PostgreSQL?
I used PostgreSQL to run SQL queries on a sample dataset
What is SQL?
SQL stands for Structured Query Language.
It is a special tool data professionals use to handle structured data (data stored in tables). It is also designed for stream processing in RDSMS
Which Queries were used to make the project?
Some of the Queries and their result are mentioned below:
List of all queries I learned to be able to do this project :
Here’s a list of the SQL queries mentioned:
CREATE
INSERT
UPDATE
ALTER
DELETE
DROP
TRUNCATE
DATATYPES in SQL
SELECT
DISTINCT
WHERE
LIKE
ORDER BY
LIMIT
TOP
AND
OR
NOT
IN
BETWEEN
SUM
MAX
MIN
COUNT
AVG
GROUP BY
HAVING
INNER JOIN
RIGHT JOIN
LEFT JOIN
OUTER JOIN
SELF JOIN
EXISTS
UNION
UNION ALL
DATE TIME FUNCTIONS
CTE (Common Table Expressions)
SUBQUERIES
CASE WHEN
WINDOW FUNCTIONS
ROW_NUMBER
RANK
DENSE_RANK
LEAD
LAG
NTILE
FIRST_VALUE
LAST_VALUE
AGGREGATE FUNCTIONS AS WINDOW FUNCTIONS
Subscribe to my newsletter
Read articles from Varun Chopra directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by