SELECT * FROM TD_WhichMax ( ON { table | view | (query) } AS InputTable [ PARTITION BY ANY [ORDER BY order_by_column ] ] USING TargetColumn ('target_column') ) AS alias;
SELECT * FROM TD_WhichMax ( ON { table | view | (query) } AS InputTable [ PARTITION BY ANY [ORDER BY order_by_column ] ] USING TargetColumn ('target_column') ) AS alias;