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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:14:44+00:00 2026-06-09T19:14:44+00:00

I am trying to join two tables, but the issue is that as a

  • 0

I am trying to join two tables, but the issue is that as a condition i need their field “time” to be approximately the same.

Let me write a little clearer, this is what i thought to do up to now.

SELECT location
FROM retailer
LEFT JOIN imovo
ON retailer.time=imovo.time.

Now, what i really need is not this : retailer.time=imovo.time but i need that the difference between the seconds of the field in retailer table to be not larger than 4 seconds to the imovo time field.

Let me explain, let’s suppose the time field from retailer says: 11:11:23 i should join this two tables if the time from imovo is between : 11:11:23 and 11:11:26

So, could you please help me on this one?
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-09T19:14:45+00:00Added an answer on June 9, 2026 at 7:14 pm
    ...
    ON addtime(retailer.time, '0:0:4')<imovo.time
    AND retailer.time >imovo.time
    

    http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_addtime
    http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_subtime

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

Sidebar

Related Questions

I have two tables that I am trying to join in a query, but
I'm trying to join two tables from DB but I need to join them
I have been trying to join two tables (USERS AND USERS_ROLES) based on their
I'm trying to use natural join to join two tables in mySQL that have
I'm trying to write a LINQ expression that will join two tables and return
I'm trying to join two tables but can't get the SQL right. My SQL
I'm trying to join two tables with the same structure if they match the
I'm trying to generate a SQL query that can join two tables together and
I'm trying to join two relatively simple tables together, but my query is experiencing
I'm trying to join two tables, but having an error: Unknown record property /

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.