Posts

Showing posts with the label Aggregate Functions

SQL Essentials

Image
Introduction Structured Query Language (SQL) empowers data analysts to communicate with their databases. While spreadsheets (e.g. Microsoft Excel and Google Sheets) offer data storage and management, databases excel at handling larger and more complex datasets. Popular SQL programs include MySQL , Microsoft SQL Server and BigQuery . SQL Statements Database actions are primarily performed using SQL statements, which consist of easy-to-understand keywords like: Database CREATE DATABASE - Creates a new database. BACKUP DATABASE - Creates a backup of an existing database DROP DATABASE - Deletes an existing database. Table CREATE TABLE - Creates a new table within a database. ALTER TABLE - Modifies an existing table. DROP TABLE - Deletes a table from a database. TRUNCATE TABLE - Delete the data inside a table, but not the table itself. Data SELECT - Extracts data from a database SELECT DISTINCT - Returns only distinct (different) values UPDATE - Updates existing data in a databa...