Query a Row Using Native Object Store | VantageCloud Lake - Querying for a Specific Set of Rows - Teradata VantageCloud Lake

Lake - Manage and Move Data

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-05-16
dita:mapPath
atx1683670417382.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
atx1683670417382

The examples use a sample river flow data set. To use your own data, replace the table and column names, and authorization object. See Variable Substitutions for Examples for the credentials and location values for the sample data set.

  1. To run NOS-related commands, log on to the database as a user with the required privileges.
  2. If the foreign table does not exist, create it or ask your database administrator to create it. See Setting Up to Run Examples.
  3. Query for a set of rows by specifying a specific value in the WHERE clause. This requests that only records with that value be returned for viewing.
    SELECT MAX(columnX)
    FROM table_name
    WHERE columnN = 'value';

Example: Querying for a Specific Set of Rows

Specify a specific value for the site_no attribute in the WHERE clause. In this example, the max value for the Flow attribute for a single site_no is returned.

If not already done, create the foreign table. See Setting Up to Run Examples.

SELECT MAX(Flow)
FROM riverflow
WHERE site_no = '09394500';

Your result is similar to the following:

Maximum(Flow)
----------------------
               9.91