※一部、英文及び仏文を自動翻訳した日本語訳を使用しています。
序文
ISO (国際標準化機構) と IEC (国際電気標準会議) は、世界標準化のための専門システムを形成しています。 ISO または IEC のメンバーである国家機関は、技術活動の特定の分野を扱うために、それぞれの組織によって設立された技術委員会を通じて、国際規格の開発に参加しています。 ISO と IEC の技術委員会は、相互に関心のある分野で協力しています。 ISO および IEC と連携して、政府および非政府の他の国際機関もこの作業に参加しています。情報技術の分野では、ISO と IEC が合同技術委員会 ISO/IEC JTC 1 を設立しました。
この文書の開発に使用された手順と、今後の維持のために意図された手順は、ISO/IEC 指令で説明されています。 1. 特に、さまざまなタイプの文書に必要なさまざまな承認基準に注意する必要があります。この文書は、ISO/IEC 指令の編集規則に従って作成されました。 2 ( www.iso.org/directives を参照)
このドキュメントの要素の一部が特許権の対象となる可能性があることに注意してください。 ISO および IEC は、そのような特許権の一部またはすべてを特定する責任を負わないものとします。ドキュメントの開発中に特定された特許権の詳細は、序文および/または受信した特許宣言の ISO リストに記載されます ( www.iso.org/patents を参照)
このドキュメントで使用されている商号は、ユーザーの便宜のために提供された情報であり、保証を構成するものではありません。
適合性評価に関連する ISO 固有の用語と表現の意味に関する説明、および技術的貿易障壁 (TBT) における世界貿易機関 (WTO) の原則への ISO の準拠に関する情報については、次の URL を参照してください: www.iso .org/iso/foreword.html .
この文書を担当する委員会は、ISO/IEC JTC 1, 情報技術、SC 32, データ管理および交換です。
ISO 19075 シリーズのすべての部品のリストは、ISO Web サイトにあります。
序章
このテクニカル レポートでは、[ISO9075-2] で定義されているように、テーブルの行のパターンを認識するための構文とセマンティクスについて説明します。
[ISO9075-2] は、行パターン認識に関する 2 つの機能を定義しています。
- 機能 R010, 「行パターン認識: FROM 句」
- 機能 R020「行パターン認識: WINDOW 句」
これら 2 つの機能には、かなりの構文とセマンティクスが共通しています。主な違いは、構文が FROM 句に配置されるか、WINDOW 句に配置されるかです。
このテクニカル レポートの構成は次のとおりです。
- 1)第 1 条「範囲」は、このテクニカル レポートの範囲を指定します。
- 2)第 2 項「引用規格」は、このテクニカル レポートで参照される規格を示します。
- 3)第 3 節「行パターン認識: FROM 節」では、機能 R010「行パターン認識: FROM 節」について説明しています。
- 4)第 4 節「MEASURES および DEFINE の式」では、行パターン マッチングにおけるスカラー式の構文について説明しています。
- 5)第 5 条「行パターン認識: WINDOW 句」では、機能 R020「行パターン認識: WINDOW 句」について説明しています。第 5 節「行パターン認識: WINDOW 節」は、第 3 節「行パターン認識: FROM 節」および第 4 節「MEASURES および DEFINE の式」ですでに提示されている内容と重複していません。機能 R020「行パターン認識: WINDOW 句」のみに関心があります。
- 6)第 6 節「パターン マッチングの規則」では、パターン マッチングの正式な規則について説明します。
1 スコープ
このテクニカル レポートでは、[ISO9075-2] で定義されているように、テーブルの行のパターンを認識するための構文とセマンティクスについて説明します。
2 参考文献
本書の適用には、以下の参考文献が不可欠です。日付のある参考文献については、引用された版のみが適用されます。日付のない参照については、参照文書の最新版 (修正を含む) が適用されます。
2.1 ISO および IEC 規格
- ISO/IEC 9075-2:2016, 情報技術 - データベース言語 - SQL - 2: 財団 (SQL/財団) 。
Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1.
The procedures used to develop this document and those intended for its further maintenance are described in the ISO/IEC Directives, 1. In particular the different approval criteria needed for the different types of document should be noted. This document was drafted in accordance with the editorial rules of the ISO/IEC Directives, 2 (see www.iso.org/directives ).
Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. Details of any patent rights identified during the development of the document will be in the Introduction and/or on the ISO list of patent declarations received (see www.iso.org/patents ).
Any trade name used in this document is information given for the convenience of users and does not constitute an endorsement.
For an explanation on the meaning of ISO specific terms and expressions related to conformity assessment, as well as information about ISO's adherence to the World Trade Organization (WTO) principles in the Technical Barriers to Trade (TBT) see the following URL: www.iso.org/iso/foreword.html .
The committee responsible for this document is ISO/IEC JTC 1, Information technology, SC 32, Data management and interchange.
A list of all the parts in the ISO 19075 series, can be found on the ISO website.
Introduction
This Technical Report discusses the syntax and semantics for recognizing patterns in rows of a table, as defined in [ISO9075-2].
[ISO9075-2] defines two features regarding row pattern recognition:
- Feature R010, “Row pattern recognition: FROM clause”
- Feature R020, “Row pattern recognition: WINDOW clause”
These two features have considerable syntax and semantics in common, the principle difference being whether the syntax is placed in the FROM clause or in the WINDOW clause.
The organization of this Technical Report is as follows:
- 1) Clause 1, “Scope”, specifies the scope of this Technical Report.
- 2) Clause 2, “Normative references”, identifies standards that are referenced by this Technical Report.
- 3) Clause 3, “Row pattern recognition: FROM clause”, discusses Feature R010, “Row pattern recognition: FROM clause”.
- 4) Clause 4, “Expressions in MEASURES and DEFINE”, discusses scalar expression syntax in row pattern matching.
- 5) Clause 5, “Row pattern recognition: WINDOW clause”, discusses Feature R020, “Row pattern recognition: WINDOW clause”. Clause 5, “Row pattern recognition: WINDOW clause”, does not duplicate material already presented in Clause 3, “Row pattern recognition: FROM clause” and Clause 4, “Expressions in MEASURES and DEFINE”, which should be read even if the reader is only interested in Feature R020, “Row pattern recognition: WINDOW clause”.
- 6) Clause 6, “Pattern matching rules”, discusses the formal rules of pattern matching.
1 Scope
This Technical Report discusses the syntax and semantics for recognizing patterns in rows of a table, as defined in [ISO9075-2].
2 Normative references
The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.
2.1 ISO and IEC standards
- ISO/IEC 9075-2:2016, Information technology - Database languages - SQL - 2: Foundation (SQL/Foundation).