Example: Select Rows from a Remote Table - Teradata Fabric

Teradata® Fabric - Installation and User Guide - 3.11

Product
Teradata Fabric
Release Number
3.11
Published
August 2026
ft:locale
en-US
ft:lastEdition
2026-08-15
dita:mapPath
svw1780362788070.ditamap
dita:ditavalPath
ezw1784752870623.ditaval
dita:id
lxg1591800469257

This query:

  • Accesses the table through the teradata1 foreign server
  • Retrieves Buick vehicle records from the remote cardata table
  • Converts the selected columns to the specified data types before returning the results
SELECT CAST(Price AS DECIMAL(8,2)),
       mileage,
       CAST(make AS VARCHAR(20)),
       CAST(model AS VARCHAR(20))
FROM teradata1.default.cardata
WHERE make = 'Buick';

Result:

       price     mileage  make    model
       --------  -------  ------  --------------------
       17314.10  8221     Buick   Century
       17542.04  9135     Buick   Enclave