TD_WhichMin ( ON { table | view | (query) } AS InputTable [ PARTITION BY ANY [ORDER BY order_by_column ] ] USING TargetColumn ('target_column') )
You can call this function from:
- The FROM clause of a SELECT statement
- As part of a CREATE TABLE statement
- As part of a CREATE VIEW statement