Codd's relational model
E. F. Codd published "A Relational Model of Data for Large Shared Data Banks" in June 1970 in Communications of the ACM.
Source: Oracle
Run it. Get results.
No tool matches that. Try another word.
Mathematics
Mathematics
Utilities
Utilities
Image
Image
Language
Language
Networking
Networking
Finance
Finance
Cybersecurity
Cybersecurity
Text
Text
Date
Date
Measurement
Measurement
Audio
Audio
Health
Health
Nutrition
Nutrition
Time
Time
Weather
Weather
Document Processing
Document Processing
Productivity
Productivity
Career
Career
Business
Business
Video
Video
Education
Education
Statistics
Statistics
Chemistry
Chemistry
Physics
Physics
Construction
Construction
Electrical Engineering
Electrical Engineering
Programming
Programming
Graphic Design
Graphic Design
Computer Science
Computer Science
Database
Database
Music
Music
Digital Electronics
Digital Electronics
Electronics Engineering
Electronics Engineering
A free SQL formatter: paste a query and get it laid out so it is easy to read, with each clause (SELECT, FROM, JOIN, WHERE, GROUP BY, ORDER BY…) on its own line, the column list and conditions one a line, sub-queries indented and keywords in capitals (or lowercase). Minify it back to one line, copy it or download it as a .sql file. Strings, quoted names and comments are left exactly as they are, and nothing is run or sent.
The SQL they share: MySQL, MariaDB, PostgreSQL, SQL Server, Oracle and SQLite. Special syntax is kept as it is.
No: only spaces and line breaks change (and keyword case). Strings, names in quotes and comments are untouched.
It warns about unclosed brackets, quotes and comments; it doesn't run the query, so other mistakes show up only in your database.
Yes: separate them with ; and each is formatted on its own.
No: it is formatted in your browser and never run or saved.
It is a common convention that makes SELECT, FROM and WHERE stand out from table and column names. Choose lowercase if your team prefers it.
E. F. Codd published "A Relational Model of Data for Large Shared Data Banks" in June 1970 in Communications of the ACM.
Source: Oracle
IBM's Donald Chamberlin and Raymond Boyce wrote "SEQUEL: A structured English query language" in 1974; SEQUEL later became SQL, still pronounced "sequel".
Source: The Register
In 1979, Relational Software, Inc. (now Oracle) introduced the first commercially available implementation of SQL.
Source: Oracle
SQLite says it is likely used more than all other database engines combined, with over one trillion SQLite databases in active use.
Source: SQLite
All of SQLite's code and documentation has been dedicated to the public domain by its authors.
Source: SQLite
PostgreSQL comes from the POSTGRES project at the University of California, Berkeley, led by Michael Stonebraker; its implementation began in 1986.
Source: PostgreSQL
SELECT, FROM, WHERE in capitals stand out.
Each clause on its own line is easy to scan.
Short, clear aliases: c for customers, o for orders.
List the columns instead of SELECT *.
An UPDATE or DELETE without WHERE changes every row.
Use ? parameters, never text pasted from users: it stops SQL injection.
A -- comment explains why.
Minify a query to put it in a code string.
Advertisements
Advertisements