Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Closest Timestamp without going over - Relationship?

Featured Replies

  • Newbies

I have a timestamp in Table1, call it SomeTime

and I have another field in Table1, call it Temperature

In Table2, I have a timestamp called WeatherTime

and a field called WeatherTemperature.

It is highly unlikely that I can use an exact = relationship between SomeTime in Table1 and WeatherTime in Table2. So I 'know' that my weathertime(s) come ever hour. I created another timestamp field in Table1 called SomeTimePlusHour.

I'm banging my head against a wall trying to use a spiffy relationship to Table2, like ">" SomeTime, but "<" SomeTimePlusHour. So It isn't working for me. Does anyone have advice for looking up tabulated values using a 'closest retail price without going over' algorithm to allow for the fact I'll never have identical timestamps in these two Tables?

Thanks,

Scott

Well, you seem to be on the right track. Are you sure you're adding the hour correctly to the SomeTimePlusHour timestamp field? Timestamp fields calculate by the second. An hour is 3600 seconds.

You could also 'translate' your timestamp fields into two fields, one that captures the date and the other that captures the hour (or 'the half hour' or whatever increment you want).

It's not clear what the purpose of your relationship is so it's hard to give more precise advice.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.