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

  • Home
  • SEARCH
  • 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 6878861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:46:33+00:00 2026-05-27T04:46:33+00:00

I am new to sql (and sqlite) and so far I have learned that

  • 0

I am new to sql (and sqlite) and so far I have learned that I need to use count to get the number of rows returned by a query. However if I get for example 10’000 results and would like to divide them into 10 “pages” I would like to show only results 0-1’000 on one page , 1’000-2’000 on another page and so on.

How should I write a sql query that shows only the results I am intrested in? I guess I would have to do something like this:

select *
from sometable
where somecol like '%whatever%'
   AND resultcount > 1000
   AND resultcount < 2000;

I apologize if this has been answered before but I do not know what I should search for and so far I have not found any solutions that are simple enough for a beginner 😉

  • 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-27T04:46:33+00:00Added an answer on May 27, 2026 at 4:46 am

    You could use the LIMIT and OFFSET feature of sqlite.

    SELECT *
    FROM sometable
    WHERE somecol LIKE '%whatever%'
    LIMIT 1000 OFFSET 1000
    

    LIMIT X OFFSET Y is a LIMIT of X records, with a Y OFFSET

    so LIMIT 10 OFFSET 50 will return 10 records, with a 50 record offset.


    There is also LIMIT <skip>, <count> syntax if you prefer that style

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

Sidebar

Related Questions

I am totally new to SQL . I have a simple select query similar
I'm converting an app to use SQL Server 2008 that is currently using SQLite.
I am writing some new SQL queries and want to check the query plans
I need to create an entirely new Sql Server 2008 database and want to
I'm terribly new to SQL, and cannot seem to get the desired information out,
I am new to SQL Server, and I have been tasked with setting permissions
I am very new to SQL and am using SQLite 3 to run basket
I am very new to SQL and am using SQLite 3 to run basket
i use the statement drop trigger if exist TRIGGER in sqlite but sql server
Pretty new to sqlite (and sql). Trying to modify one table using another. create

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.