📒
Notes
Cloud ComputingData Science/AIGame Development
  • Home
  • Big O
  • Data Structures & Algorithms
    • Data Structures
      • Array
      • Stack
      • Queue
      • Linked List
      • Binary Tree
    • Algorithms
      • Searching
      • Sorting
      • Graphs
        • Searching
        • Minimum Spanning Tree
        • Shortest Path Algorithms
      • String Algorithms
  • Object Oriented Programming
  • Languages
    • HTML/CSS
      • CSS
    • C++
    • C#
      • Types
      • Keywords
        • Modifiers
          • Access Modifiers
        • Method Parameters
      • Operators and Expressions
      • Collections
      • Constructors
      • Delegates
      • Indexers
      • Concepts
      • Features
        • LINQ
          • Operators
          • Working with Data
          • Methods
          • Resources
        • Asynchronous Programming
        • Reflection
    • Dart
    • GraphQL
    • JavaScript
      • Variable and Parameter
      • Built-in objects
        • Array
        • Built-in Functions
      • Functions
      • Classes
      • Prototype
      • Libraries
        • jQuery
        • React
          • Components
          • State and Lifecycle
          • Hooks
            • useState
            • useEffect
          • Resources
      • Testing Framework
      • Web APIs
    • Kotlin
      • Basics
    • Python
      • Basics
      • Data Structures
      • Functions
      • Resources
        • Flask
    • SQL
      • Basics
      • Operators
      • JOINs
      • Aggregations
      • Subqueries
      • Views
      • Functions
        • Window Functions
      • Stored Procedures
      • Performance Tuning
      • Extras
    • Resources
  • 🌐Web Frameworks
    • Angular
      • Templates
      • Directives
        • Attribute Directives
        • Structural Directives
    • ASP.NET
      • Fundamentals
        • Dependency Injection
        • Middleware
        • Session & State Management
      • Web apps
        • MVC
          • Controllers
            • Filters
          • Models
            • Model Binding
            • Model Validation
          • Views
            • Tag Helpers
            • View Components
          • Features
        • Client-side development
      • Web APIs
        • Controller-based APIs
        • Minimal APIs
        • OpenAPI
        • Content Negotiation
      • SignalR
      • Host and Deploy
        • IIS
      • Security
    • Django
      • The Request/Response Cycle
    • Terminologies
      • Web Server
        • Internet Information Services
    • Resources
  • 📱App Frameworks
    • Introduction
      • Resources
    • Xamarin
      • Lifecycle
      • Custom Renderers & Effects
      • Behaviors
      • Triggers
      • Gestures
      • Commands
      • Dependency Service in XF
      • Libraries
      • Showcase
    • .NET MAUI
      • Controls
      • Navigation
      • Storage Options
  • Multi-Platform Frameworks
    • .NET
      • .NET Framework
        • ADO.NET
        • WCF
      • Fundamentals
        • Logging
        • Testing
      • Advanced
        • Asynchronous Programming
        • Parallel Programming
        • Threading
        • Memory Management
          • Garbage Collection
    • Flutter
  • Object-Relational Mappers
    • Entity Framework
      • Application Models
      • Configuration
      • Setting Up
      • Advanced
  • Databases
    • Introduction
      • DBMS Architecture
      • Normalization
      • Database Transaction Models
    • Relational Databases
      • Microsoft SQL Server
        • Basics
        • Functions
        • Stored Procedures
        • Error Handling
        • Log Shipping
        • Querying and Manipulating JSON data
        • Statements
        • Topics
        • Extras
    • Non-Relational Databases
      • MongoDB
      • Redis
        • Data Structures
        • Introduction
        • Managing Database
  • Tools
    • Version Control
      • Git
        • Setup and Config
        • Basics
          • Sharing and Updating Projects
        • Resources
      • Perforce Helix
    • GitHub
    • Powershell
  • Software Development
    • Software Development Life Cycle
    • Software Design Patterns
      • GoF Design Patterns
      • Architectural Patterns
        • MVC
        • MVVM
        • N-tier Architecture
        • Onion Architecture
        • Data Transfer Objects
      • CQRS
    • Software Design Principles
      • S.O.L.I.D. Priniciple
  • System Design
    • Topics
      • Load Balancing
  • Topics
    • JWT
    • Caching
      • Static vs Dynamic Caching
    • OSI model
      • HTTP
    • Glossary
    • API
      • SOAP
      • REST
    • Microservices
    • WebHooks
    • Practice
    • Operating Systems
      • Windows
    • Architecture
  • 🔖Bookmarks
  • 🔗Resources
Powered by GitBook
On this page
  • Types of SQL Databases
  • Clauses
  • Query Execution Order
  • Resources

Was this helpful?

  1. Languages

SQL

Structured Query Language

PreviousFlaskNextBasics

Last updated 2 years ago

Was this helpful?

An entity-relationship diagram (ERD) is a common way to view how data is structured in a database.

Structured Query Language (SQL) is a language that allows us to access data stored in a database.

Types of SQL Databases

  1. MySQL

  2. Access

  3. Oracle

  4. Microsoft SQL Server

  5. Postgres

Clauses

  1. SELECT: This clause specifies the columns from the data source that should be included in the query results.

  2. FROM: This clause specifies the data source(s) that should be queried. This can be a table, a view, or the results of another query.

  3. WHERE: This clause specifies conditions that must be met for a row to be included in the query results.

  4. GROUP BY: This clause groups the rows of the query results by the values in one or more columns, allowing aggregate functions to be applied to each group.

  5. HAVING: This clause is used to filter the groups in the query results, based on the values of aggregate functions applied to each group.

  6. ORDER BY: This clause specifies the order in which the rows of the query results should be returned.

  7. LIMIT: This clause limits the rows returned.

Query Execution Order

Order
Clause
Function

1

FROM

Tables are joined to get the base data.

2

WHERE

The base data is filtered.

3

GROUP BY

The filtered base data is grouped.

4

HAVING

The grouped base data is filtered.

5

SELECT

The final data is returned.

6

ORDER BY

The final data is sorted.

7

LIMIT

The returned data is limited to row count.

It is common and best practice to capitalize all SQL commands, like SELECT and FROM, and keep everything else in your query lower case.

Resources

LogoSQLite vs MySQL vs PostgreSQL: A Comparison Of Relational Database Management Systems | DigitalOcean
LogoQuery Plans in SQLEssential SQL
LogoDataLemur - Ace the SQL & Data Science Interviewnicksinghtech
LogoKnight Lab's SQL Murder MysteryKnight Lab's SQL Murder Mystery
LogoSelect Star SQL
Learn SQL while solving crimes! SQL Police Department
LogoSQL Island
LogoMode SQL Tutorial | - ModeMode Resources
LogoTechOnTheNet - Online tutorials for Excel, SQL, Oracle, PLSQL and more!
1MB
parch-and-posey.sql
Parch & Posey Database ERD