問合わせの例 - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL外部ルーチン プログラミング

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
2020年6月
Language
日本語
Last Update
2021-03-30
dita:mapPath
ja-JP/qwr1571437338192.ditamap
dita:ditavalPath
ja-JP/qwr1571437338192.ditaval
dita:id
B035-1147
Product Category
Software
Teradata Vantage
SELECT *
FROM udaggregation (
   on (select 1 as pa, 2 as pa2, tab1.* from tab1)
   local order by pa ASC NULLS FIRST, pa2 DESC NULLS LAST
   using SUM_AGG('A', 'B')
   AVG_AGG('C')
) AS D;

SELECT *
FROM udaggregation (
on (select 1 as pa, tab1.* from tab1)
partition by pa
using SUM_AGG('A', 'B')
AVG_AGG('C')
) AS D;