Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6531335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:51:55+00:00 2026-05-25T09:51:55+00:00

I am trying to fetch a huge set of records from Teradata using JDBC.

  • 0

I am trying to fetch a huge set of records from Teradata using JDBC. And I need to break this set into parts for which I’m using “Top N” clause in select.
But I dont know how to set the “Offset” like how we do in MySQL –

   SELECT * FROM tbl LIMIT 5,10

so that next select statement would fetch me the records from (N+1)th position.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:51:56+00:00Added an answer on May 25, 2026 at 9:51 am

    RANK and QUALIFY I beleive are your friends here

    for example

     SEL RANK(custID), custID 
     FROM mydatabase.tblcustomer
     QUALIFY RANK(custID) < 1000 AND RANK(custID) > 900
     ORDER BY custID;
    

    RANK(field) will (conceptually) retrieve all the rows of the resultset,
    order them by the ORDER BY field and assign an incrementing rank ID to them.

    QUALIFY allows you to slice that by limiting the rows returned to the qualification expression, which now can legally view the RANKs.

    To be clear, I am returning the 900-1000th rows in the query select all from cusotmers,
    NOT returning customers with IDs between 900 and 1000.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to fetch information from a JSON web service with this code, using
i am trying to fetch random records from mysql database , which it worked
I'm trying to fetch data from a div (based on his id), using PHP's
I am trying to fetch records based on two dates from sql server... Select
I'm trying to fetch an image from the AppEngine server in development mode, using
Problem: i am trying to fetch huge number of entries from the database and
I am trying to fetch 'domain' from 'http://domain.com/some-more-path' using regex: /(.*)(http|https):\/\/(.*)(\/)(.*)/ and then $3
when trying to fetch data from a tornado GET method, if we need a
I'm trying to fetch random no. of entries from a database by using SELECT
We are trying to set up a cursor to run through records generated from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.