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.

Need advice on the best way of altering my database.

Featured Replies

Can someone give me some advice on how to carry out the following.

I run a self-employed service company and the database I created years ago still works great, It consists of two tables: Customers and Jobs. I can see a customer and a list of jobs done for that customer.

Its just that when I created the jobs table, I only created two 'date' fields; one for 'date booked', the other for 'date completed'.

This is ok if the date booked is the call out date and the date completed is the finished date, but some calls require more than two visits and work carried out on those visits needs to be recorded.

I'm not sure how to approach this, whether I need to create more 'date' fields in the job table, the only problem with this, is I never know how many visits I'm going to make on each job. Or create a new job for each visit, an idea I'm not keen on as I would rather the visits relating to the same job be under one job number.

Thanks in anticipation.

You need a join table. Create a table Jobs Worked. It will contain a Customer ID field, a Job ID field, and a Date Worked field. Relate this table to the Customer table by Customer::Customer ID = Jobs Worked::Customer ID. Relate the Jobs Worked table to Jobs by Jobs::Job ID = Jobs Worked::Job ID .

Now you can create a portal in Customers or jobs to show all jobs and the days worked on those jobs.

See the attached demo.

JobsDemo.fp7.zip

  • Author

Thanks for that doughemi, I can see what you've done, I'm now trying to put it into practice.

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.