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 8921793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:39:00+00:00 2026-06-15T06:39:00+00:00

I need some help, I have the following query: SELECT l.*, d.*, i.*, DATE_FORMAT(l.date_created,

  • 0

I need some help, I have the following query:

SELECT
    l.*,
    d.*,
    i.*,
    DATE_FORMAT(l.date_created, '%d/%m/%Y') as date,
    UNIX_TIMESTAMP(l.date_created) as ts,
    DATE_FORMAT(d.date_deposit_made, '%d/%m/%Y') as date_deposit_made,
    l.commission_introducer
FROM
    tbl_client_commissions_log l
INNER JOIN
    tbl_client_deposits d
INNER JOIN
    tbl_initial_commissions i
ON
    l.fk_deposit_id = d.pk_deposit_id AND i.fk_client_id = d.fk_client_id

WHERE
    d.date_deposit_made BETWEEN ? AND ? AND l.system_fee = '0'

AND
    l.fk_introducer_id = ?

ORDER BY ? LIMIT ? OFFSET ?

The problem is when I put a limit of say 10 and an offset of 0 to start it off. It only returns one row.

How do you paginate with inner joins betweem 2 tables?

Thanks.

  • 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-06-15T06:39:02+00:00Added an answer on June 15, 2026 at 6:39 am

    I think you can simply try the LIMIT as:

      LIMIT ?, ?
    

    where first param will be set to 0 and second will be set to 10 and you should get your results.

    From MySQL Manual here:

    With two arguments, the first argument specifies the offset of the first row to return, and the second specifies the maximum number of rows to return. The offset of the initial row is 0 (not 1):

    SELECT * FROM tbl LIMIT 5,10; # Retrieve rows 6-15

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

Sidebar

Related Questions

I need some help with query from multiple tables. My database: I have following
I need some help writing a regex. I have the following strings, xxx.yyy.wwwwwaaa_IN_123 xxx.rrrttttt_IN_12355
I need some help with something... say I have the following form... <form name=
Need some help from javascript gurus. I have one page where http://www.google.com/finance/converter is embedded
Need some help with a query.. I have three tables. Source id name 1
I need some help to build SQL Query. I have table having data like:
I am new to Jquery and need some help: I have a div, I
I'm a noob with mysql and php, and need some help :) I have
Need some help... I have jasperserver 4.1 installed on my ubuntu. It runs via
Need some help to solve this. I have a gridview and inside the gridview

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.