ISO/IEC TR 19075-9:2020 情報技術データベース言語—データベース言語SQLの使用に関するガイダンス—パート9:オンライン分析処理(OLAP)機能 | ページ 2

※一部、英文及び仏文を自動翻訳した日本語訳を使用しています。

序文

ISO (国際標準化機構) と IEC (国際電気標準会議) は、世界標準化のための専門システムを形成しています。 ISO または IEC のメンバーである国家機関は、技術活動の特定の分野を扱うために、それぞれの組織によって設立された技術委員会を通じて、国際規格の開発に参加しています。 ISO と IEC の技術委員会は、相互に関心のある分野で協力しています。 ISO および IEC と連携して、政府および非政府の他の国際機関もこの作業に参加しています。

この文書の作成に使用された手順と、今後の維持を意図した手順は、ISO/IEC 指令で説明されています。 1. 特に、さまざまなタイプの文書に必要なさまざまな承認基準に注意する必要があります。この文書は、ISO/IEC 指令の編集規則に従って作成されました。 2 ( www.iso.org/directives を参照)

このドキュメントの要素の一部が特許権の対象となる可能性があることに注意してください。 ISO および IEC は、そのような特許権の一部またはすべてを特定する責任を負わないものとします。文書の作成中に特定された特許権の詳細は、序論および/または受信した特許宣言の ISO リスト ( www.iso.org/patents を参照)、または受信した特許宣言の IEC リスト ( http を参照) に記載されます。 ://patents.iec.ch )

このドキュメントで使用されている商号は、ユーザーの便宜のために提供された情報であり、保証を構成するものではありません。

規格の自主的な性質の説明、適合性評価に関連する ISO 固有の用語と表現の意味、および技術的貿易障壁 (TBT) における世界貿易機関 (WTO) の原則への ISO の準拠に関する情報については、 www を参照してください。 .iso.org/iso/foreword.html .

この文書は、技術委員会 ISO/IEC JTC 1, 情報技術、小委員会 SC 32, データ管理および交換によって作成されました。

この文書は、ISO/IEC 9075 の次の版と併せて使用することを意図しています。

  • ISO/IEC 9075-1 第 6 版以降
  • ISO/IEC 9075-2 第 6 版以降
  • ISO/IEC 9075-3 第 6 版以降
  • ISO/IEC 9075-4 第 7 版以降
  • ISO/IEC 9075-9 第 5 版以降
  • ISO/IEC 9075-10 第 5 版以降
  • ISO/IEC 9075-11 第 5 版以降
  • ISO/IEC 9075-13 第 5 版以降
  • ISO/IEC 9075-14 第 6 版以降
  • ISO/IEC 9075-15 第 2 版以降
  • ISO/IEC 9075-16 初版以降

ISO/IEC 19075 シリーズのすべての部品のリストは、ISO Web サイトにあります。

序章

このドキュメントでは、ISO/IEC 9075-2 で定義されているように、オンライン分析処理 (OLAP) 機能を SQL に含めるための構文とセマンティクスについて説明します。

このドキュメントの構成は次のとおりです。

  • 1)第 1 条「範囲」は、このドキュメントの範囲を指定します。
  • 2)箇条 2, 「規範的参照」は、このドキュメントによって要件の一部として参照される標準を識別します。
  • 3)第 3 条「用語と定義」は、このドキュメントで使用される用語と定義を定義します。
  • 4)第 5 条「Windows」では、機能 T611「基本的な OLAP 操作」と機能 T612「高度な OLAP 操作」について説明し、SQL クエリにウィンドウの概念を導入しています。
  • 5)第 6 条「ウィンドウ関数」では、機能 T611「基本的な OLAP 操作」と機能 T612「高度な OLAP 操作」、および機能 T614「NTILE 関数」、機能 T615「LEAD および LAG 関数」についてさらに説明します。 、機能 T616, 「LEAD および LAG 関数の Null 処理オプション」、機能 T617, 「FIRST_VALUE および LAST_VALUE 関数」、および機能 T618, 「NTH_VALUE 関数」。
  • 6)第 7 条「ネストされたウィンドウ関数」では、機能 T619「ネストされたウィンドウ関数」の追加のウィンドウ機能について説明しています。
  • 7)第 8 条「拡張集計関数」では、機能 T621「拡張数値関数」と、SQL での拡張集計関数の導入について説明しています。

1 スコープ

このドキュメントでは、ISO/IEC 9075-2 で定義されているように、オンライン分析処理 (OLAP) 機能を SQL に含めるための構文とセマンティクスについて説明します。

SQL 言語の OLAP 機能に関する次の機能について説明します。

  • 機能 T611, 「基本的な OLAP 操作」、
  • 機能 T612, 「高度な OLAP 操作」、
  • 機能 T614, 「NTILE 関数」、
  • 機能 T615, 「LEAD および LAG 関数」、
  • 機能 T616, 「LEAD および LAG 関数の Null 処理オプション」、
  • 機能 T617, 「FIRST_VALUE および LAST_VALUE 関数」、
  • 機能 T618, 「NTH_VALUE 関数」、
  • 機能 T619, 「ネストされたウィンドウ関数」、
  • 機能 T620, 「WINDOW 句: GROUPS オプション」、
  • 機能 T621, 「拡張数値関数」。

2 参考文献

このドキュメントには規範的な参照はありません。

3 用語と定義

このドキュメントには、用語と定義は記載されていません。

ISO および IEC は、次のアドレスで標準化に使用する用語データベースを維持しています。

参考文献

ISO/IEC 9075-2, 情報技術 — データベース言語 — 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.

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 ), or the IEC list of patent declarations received (see http://patents.iec.ch ).

Any trade name used in this document is information given for the convenience of users and does not constitute an endorsement.

For an explanation of the voluntary nature of standards, 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 www.iso.org/iso/foreword.html .

This document was prepared by Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 32, Data management and interchange.

This document is intended to be used in conjunction with the following editions of the parts of ISO/IEC 9075:

  • ISO/IEC 9075-1, sixth edition or later
  • ISO/IEC 9075-2, sixth edition or later
  • ISO/IEC 9075-3, sixth edition or later
  • ISO/IEC 9075-4, seventh edition or later
  • ISO/IEC 9075-9, fifth edition or later
  • ISO/IEC 9075-10, fifth edition or later
  • ISO/IEC 9075-11, fifth edition or later
  • ISO/IEC 9075-13, fifth edition or later
  • ISO/IEC 9075-14, sixth edition or later
  • ISO/IEC 9075-15, second edition or later
  • ISO/IEC 9075-16, first edition or later

A list of all parts in the ISO/IEC 19075 series can be found on the ISO website.

Introduction

This document discusses the syntax and semantics for including online analytic processing (OLAP) capabilities in SQL, as defined in ISO/IEC 9075-2.

The organization of this document is as follows:

  • 1) Clause 1, “Scope”, specifies the scope of this document.
  • 2) Clause 2, “Normative references”, identifies standards that are referenced as part of requirements by this document.
  • 3) Clause 3, “Terms and definitions”, defines the terms and definitions used in this document.
  • 4) Clause 5, “Windows”, discusses Feature T611, “Elementary OLAP operations” and Feature T612, “Advanced OLAP operations”, introducing the concept of a window in an SQL query.
  • 5) Clause 6, “Window functions”, further discusses Feature T611, “Elementary OLAP operations” and Feature T612, “Advanced OLAP operations”, as well as Feature T614, “NTILE function”, Feature T615, “LEAD and LAG functions”, Feature T616, “Null treatment option for LEAD and LAG functions”, Feature T617, “FIRST_VALUE and LAST_VALUE functions”, and Feature T618, “NTH_VALUE function”.
  • 6) Clause 7, “Nested window functions”, discusses the additional window functionality in Feature T619, “Nested window functions”.
  • 7) Clause 8, “Enhanced aggregate functions”, discusses Feature T621, “Enhanced numeric functions” and its introduction of enhanced aggregate functions in SQL.

1 Scope

This document discusses the syntax and semantics for including online analytic processing (OLAP) capabilities in SQL, as defined in ISO/IEC 9075-2.

It discusses the following features regarding OLAP capabilities of the SQL language:

  • Feature T611, “Elementary OLAP operations”,
  • Feature T612, “Advanced OLAP operations”,
  • Feature T614, “NTILE function”,
  • Feature T615, “LEAD and LAG functions”,
  • Feature T616, “Null treatment option for LEAD and LAG functions”,
  • Feature T617, “FIRST_VALUE and LAST_VALUE functions”,
  • Feature T618, “NTH_VALUE function”,
  • Feature T619, “Nested window functions”,
  • Feature T620, “WINDOW clause: GROUPS option”,
  • Feature T621, “Enhanced numeric functions”.

2 Normative references

There are no normative references in this document.

3 Terms and definitions

No terms and definitions are listed in this document.

ISO and IEC maintain terminological databases for use in standardization at the following addresses:

Bibliography

ISO/IEC 9075-2, Information technology — Database languages — SQL — 2: Foundation (SQL/Foundation)