GetContainerName function

The GetContainerName function returns the name of the container for the given time series.

Syntax

GetContainerName(ts TimeSeries) 
returns lvarchar;
ts
The time series from which to obtain the container name.

Description

The API equivalent of this function is ts_get_containername().

Returns

The name of the container for the given time series.

An empty string is returned if the time series is not located in a container.

Example

The following example gets the name of the container holding the stock with ID 600:
select GetContainerName(activity_data)
   from activity_stocks
   where stock_id = 600;