ArticleslgStudy

science

SQL-92

SQL-92 is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand SQL-92 rather than just read about it. In short: SQL-92 (also called SQL 2) was the third revision of the SQL database query language. Unlike SQL-89, it was a major revision of the standard.

Key takeaways

  • SQL-92 belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect SQL-92 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of SQL-92 from memory before moving on to harder problems.

Reference excerpt

SQL-92 (also called SQL 2) was the third revision of the SQL database query language. Unlike SQL-89, it was a major revision of the standard. Aside from a few minor incompatibilities, the SQL-89 standard is forward-compatible with SQL-92. The standard specification itself grew about five times compared to SQL-89. Much of it was due to more precise specifications of existing features; the increase due to new features was only by a factor of 1.5–2. Many of the new features had already been implemented by vendors before the new standard was adopted. However, most of the new features were added to the "intermediate" and "full" tiers of the specification, meaning that conformance with SQL-92 entry level was scarcely any more demanding than conformance with SQL-89. The next revision is SQL:1999 (SQL3).

Related official standard ANSI X3.135-1992 ISO/IEC 9075:1992 FIPS PUB 127-2

New features Significant new features include:

New data types defined: DATE, TIME, TIMESTAMP, INTERVAL, BIT string, VARCHAR strings, and NATIONAL CHARACTER strings. Support for additional character sets beyond the base requirement for representing SQL statements. New scalar operations such as string concatenation and substring extraction, date and time mathematics, and conditional statements. New set operations such as UNION, UNION ALL, CROSS JOIN, and formalized JOIN types (INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL OUTER JOIN). Conditional expressions with CASE. For an example, see Case (SQL). Support for alterations of schema definitions via ALTER and DROP. Bindings for C, Ada, and MUMPS. New features for user privileges. New integrity-checking functionality such as within a CHECK constraint. A new information schema—read-only views about database metadata like what tables it contains, etc. For example, SELECT * FROM INFORMATION_SCHEMA.TABLES;. Dynamic execution of queries (as opposed to prepared). Better support for remote database access. Temporary tables; CREATE TEMP TABLE etc. Transaction isolation levels. New operations for changing data types on the fly via CAST (expr AS type). Scrolled cursors. Compatibility flagging for backwards and forwards compatibility with other SQL standards.

Extensions Two significant extensions were published after standard (but before the next major iteration.)

SQL/CLI (Call Level Interface) in 1995 SQL/PSM (stored procedures) in 1996

References

External links The SQL-92 standard

Worked examples

Example 1 — a first encounter with SQL-92

Start with the simplest possible case. Write down what SQL-92 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to SQL-92 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about SQL-92 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of SQL-92

In research
SQL-92 appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses SQL-92 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
SQL-92 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Declarative programming languages, Programming languages created in 1992, SQL, so understanding it makes those chapters shorter.
In everyday life
Look for SQL-92 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “SQL-92” →

How to study SQL-92 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what SQL-92 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain SQL-92 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is SQL-92 in simple terms?

SQL-92 (also called SQL 2) was the third revision of the SQL database query language. Unlike SQL-89, it was a major revision of the standard.

Why does SQL-92 matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study SQL-92?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on SQL-92.

Tags

  • Declarative programming languages
  • Programming languages created in 1992
  • SQL

Keep exploring