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

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

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Published
2020年6月
Content Type
プログラミング リファレンス
Publication ID
B035-1147-170K-JPN
Language
日本語 (日本)
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;