×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Relations between similar tables?

Relations between similar tables?

Relations between similar tables?

(OP)
The title may not be accurate... but here goes:

I have a workout DB that allows me to enter workouts (workouts contain exercises), meals (meals contain foods), and schedule the workouts and meals in a schedule table (links a meal or a workout to a schedule record with a date and time).


Here's where I'm having trouble:
I want to track my progress as far as weights and reps. This means a seperate "Instance" table for the workout items. When I add a workout to the schedule, the workout items instance portal should populate with the exercises in that workout simply by entering a workout ID. However, I don't see that as possible via my design. I have to create new "instance" records, and copy the workout IDs into them. This is not ideal, and I feel like I'm missing something here (there has to be a better way). I know a but about DB design, relationships, etc, but can obviously use some guidance.

Any help is greatly appreciated.

RE: Relations between similar tables?

Not knowing your whole structure, I would say that you have to add an exercise in the exercise table, and link that to a workoutID.
If the exercise doesn't fall into a workoutmodel
you have to create a new workout and an exercise.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close