• Post category:StudyBullet-6
  • Reading time:4 mins read


Interact with databases with SQL

What you will learn

Setup SQL Environment with PostgreSQL

Create a new database

Create a new table

Insert data into table

Select values within a given range using SQL Between

Specify multiple values in a WHERE clause with SQL IN

Description

SQL (pronounced “ess-que-el”) stands for Structured Query Language. SQL is used to communicate with a database. According to ANSI (American National Standards Institute), it is the standard language for relational database management systems. SQL statements are used to perform tasks such as update data on a database, or retrieve data from a database. Some common relational database management systems that use SQL are: Oracle, Sybase, Microsoft SQL Server, Access, Ingres, etc.

Although most database systems use SQL, most of them also have their own additional proprietary extensions that are usually only used on their system. However, the standard SQL commands such as “Select”, “Insert”, “Update”, “Delete”, “Create”, and “Drop” can be used to accomplish almost everything that one needs to do with a database.

The SQL INSERT INTO Statement is used to add new rows of data to a table in the database.


Get Instant Notification of New Courses on our Telegram channel.


The SQL BETWEEN command is used to select values within a given range. The values can be numbers, text, or dates. The BETWEEN command is inclusive: begin and end values are included.

The SQL IN condition (sometimes called the IN operator) allows you to easily test if an expression matches any value in a list of values. It is used to help reduce the need for multiple OR conditions in a SELECT, INSERT, UPDATE, or DELETE statement.

PostgreSQL, also known as Postgres, is a free and open-source relational database management system emphasizing extensibility and SQL compliance. It was originally named POSTGRES, referring to its origins as a successor to the Ingres database developed at the University of California, Berkeley.

English
language

Content

SQL Execution Environment Setup

Introduction
What is SQL
What is PostgreSQL
Install PostgreSQL on Windows
Install PostgreSQL on Mac
Install PostgreSQL on Linux
Install PgAdmin on Mac
Install PgAdmin on Linux
Connect to PostgreSQL
Load sample database
Database Concepts

SQL Database Operations

Create a database
Create a table
INSERT Into Table
SQL BETWEEN Operator
SQL IN Operator