Example: SELECT with Queue Tables - Teradata VantageCloud Lake

Lake - Working with SQL

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

The following statement measures the queue depth of a queue table named shopping_cart:

     SELECT COUNT(*)
     FROM shopping_cart;

Assuming the column named cart_qits contains QITS values, this statement returns the shopping_cart queue table in FIFO order:

     SELECT *
     FROM shopping_cart
     ORDER BY cart_qits;