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.

Noobie to FM7, payroll database problem

Featured Replies

I am new to FM7. I understand databases and have done most of my work in SQL Server, MySQL, or MS Access. I am trying to move one of our databases to FM7. It is very possible the layout I am attempting to use is foolish for an FM7 database, and I am more than happy to change that. Let me describe what I am trying to do.

I have 3 tables right now. 1) List of all employees in the company. 2) A table that consists of EmployeeID, EffectiveDate, Salary. 3) A table of all valid paydates.

I require 2 views of this data. 1) For any employee, look up their salary history. This is easily accomplished with portals, and works great.

2) The ability to look up any paydate, and show the payroll information that is "in-effect" for this date.

#2 I can't figure out how to do in FM7. The effective dates could be any date, and may not be contained in the paydates table. Paydates are currently dates at a 2-week interval for 30-40 years.

So, for a given paydate, I need to see only ONE salary for each employee, and that salary would be the maximum effective date that is also less than or equal to the paydate.

Thanks in advance,

-Matt

Use three tables: employee, paydate, and employee-paydate (join table). The join table should have employee data as of that paydate.

  • Author

That would be the obvious solution, but there are 2 problems with that.

1) I don't want to have to do data entry EVERY pay date, only when the information changes (typically once a year for most employees)

2) The effective date may or may not be a valid pay date. Some employees start mid-cycle.

-Matt

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.