• Post category:StudyBullet-3
  • Reading time:9 mins read


Query and Manipulate Databases

What you will learn

 

 

Install and Setup PostgreSQL Database Server

 

Install and Setup MongoDB NoSQL Database

 

Install Sample Database

 

Query PostgreSQL Databases with SQL

 

Query MongoDB with NoSQL

 

Filter and sort data

 

Grouping Data

 

Query data with Table Joins

 

Query data with Aggregate Functions

Description

 

Databases are crucial to building applications. They store data that make our applications work like they should. A database query is a request for a database’s data so we can retrieve or manipulate it.

At a very high level, a query is a question. When we talk about queries in relation to other people, we expect some sort of answer in return. This is no different for computers when we perform database queries.

A database query is a similar action that is most closely associated with some sort of CRUD (create, read, update, delete) function. A database query is a request to access data from a database to manipulate it or retrieve it. This allows us to perform logic with the information we get in response to the query.


Get Instant Notification of New Courses on our Telegram channel.


A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database management system (DBMS). Together, the data and the DBMS, along with the applications that are associated with them, are referred to as a database system, often shortened to just database.

Data within the most common types of databases in operation today is typically modeled in rows and columns in a series of tables to make processing and data querying efficient. The data can then be easily accessed, managed, modified, updated, controlled, and organized. Most databases use structured query language (SQL) for writing and querying data

SQL is a programming language used by nearly all relational databases to query, manipulate, and define data, and to provide access control. SQL was first developed at IBM in the 1970s with Oracle as a major contributor, which led to implementation of the SQL ANSI standard, SQL has spurred many extensions from companies such as IBM, Oracle, and Microsoft. Although SQL is still widely used today, new programming languages are beginning to appear.

Relational databases became dominant in the 1980s. Items in a relational database are organized as a set of tables with columns and rows. Relational database technology provides the most efficient and flexible way to access structured information.

A NoSQL, or nonrelational database, allows unstructured and semi structured data to be stored and manipulated (in contrast to a relational database, which defines how all data inserted into the database must be composed). NoSQL databases grew popular as web applications became more common and more complex.

PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads.

MongoDB is an open-source document database built on a horizontal scale-out architecture that uses a flexible schema for storing data.

SQL stands for Structured Query Language

SQL lets you access and manipulate databases.

English
language

Content

 
PostgreSQL Database Server Setup
Introduction
What is SQL
What is PostgreSQL
Installing PostgreSQL on Windows
Installing PostgreSQL on MacOS
Installing PgAdmin on MacOS
Installing PostgreSQL on Linux (Ubuntu)
Installing PgAdmin on Linux (Ubuntu)
Connecting to PostgreSQL Server
Installing Sample database
Database Concepts
Querying PostgreSQL Databases with SQL
Getting all data from a table
Getting data from specific table columns
Filtering data from database
Sorting data from database
Grouping Data
Filtering Groups
Query database using comparison operators
Query database using Between operators
Query database using Not Between operators
Query database using LIKE operators
Query database using Not operators
Query database using OR operators
Query database using AND operators
Query database using OR + AND operators
Query database using Limit operators
Query database using IN operators
Query database using Union operators
Query database using Union All operators
Query database using Intersect operators
Query database using Except operators
Table Joins
Query database using Inner Table Join
Query database using Left Join Table Join
Query database using Full Outer Table Join
Query database using Cross Table Join
Query database using Natural Table Join
What are Aggregate Functions
Query database using AVG Aggregate Functions
Query database using COUNT Aggregate Functions
Query database using MAX Aggregate Functions
Query database using MIN Aggregate Functions
Query database using SUM Aggregate Functions
MongoDB Environment Setup
What is MongoDB
Installing MongoDB
Installing MongoDB on Macs
Modifying environment variables
Creating a storage directory
Starting and stopping mongoDB
MongoDB Data Types
Create a database
Inserting documents into MongoDB
Querying databases with NoSQL
What is NoSQL
Querying documents
Updating documents
Deleting documents
Limiting data
Indexes
Creating CSV files
Exploring dataset structures
Using MongoDB Import Tool
Joining collections