SQL: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:


==Result Set==
==Result Set==
The result of an SQL query. It is logically equivalent with a non-persistent [[Relational_Databases#Table_(Relation)|table]].
The result of an [[SQL_SELECT#Overview|SQL query]]. It is logically equivalent with a non-persistent [[Relational_Databases#Table_(Relation)|table]].


==View==
==View==

Revision as of 21:51, 22 May 2024

External

Internal

Overview

This article documents standard SQL. For database-specific extensions, we'll link to the databases-specific DML operations page.

SQL is a non-procedural language TODO: this

Terms

Relational Database Terminology

In a relational model, data is stored in a set of tables, also known as relations. Within a relation, data is organized in rows (records) and columns. Each row describes an entity.

Also see:

Relational Databases

Result Set

The result of an SQL query. It is logically equivalent with a non-persistent table.

View

SQL Schema Statements (DDL)

CREATE

CREATE TABLE

ALTER TABLE

SQL Data Statements (DML)

Refactor PostgreSQL DML Operations and surface in "Standard SQL" everything that can be handled with standard SQL.

INSERT

UPDATE

UPDATE WHERE

DELETE

DELETE WHERE

Queries with SELECT

Queries with SELECT

SQL Transaction Statements

Transactions.

Data Types

  • SQL data types
  • Database-specific data types
  • Working with different data types
  • Conversion functions

SQL NULL

NULL in conditions.

Indexes

Constraints

Set Operations

SQL Conditional Logic