Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Query
    • Overview
    • Selecting all columns
    • Selecting specific columns
    • Sorting and filtering
    • Data aggregation
    • Additional filter conditions
    • Working with JSON
    • Querying streaming data
  • Access management
  • Pricing policy
  • Integrations
  • Audit Trails events
  • FAQ
  1. Working with YQL
  2. Selecting specific columns

Selecting specific columns

Written by
Yandex Cloud
Improved by
Updated at July 7, 2026
View in Markdown

You can select all or only specific columns. You can also rename existing columns and create new ones.

For example:

  • Select columns age, last_visit_time, and region.
  • Rename region to area.
  • Change release_date data type from Int32 to DateTime.
SELECT
    VendorID,                           -- Column names
    trip_distance,                      -- separated by commas.
    fare_amount AS fare,                -- You can use AS to rename columns.
    (total_amount/1000) AS total_amount_thousand_dollars, -- You can use AS to name any expression.
    CAST(VendorID as Uint32) AS vendorID -- You can convert data types using CAST.
FROM
    `tutorial-analytics`
LIMIT 10

Check the example in the right-hand section and click Run.
The query result will appear in the Result tab as a table or chart.

Useful linksUseful links

  • SELECT operator
  • YQL data types
  • Type casting in YQL
  • Functions for dates

Was the article helpful?

Previous
Selecting all columns
Next
Sorting and filtering
© 2026 Direct Cursus Technology L.L.C.