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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:44:36+00:00 2026-06-14T05:44:36+00:00

Ok so i have a website in progress that will allow users to build

  • 0

Ok so i have a website in progress that will allow users to build routines using a set list of exercises provided. They can add a number of exercises to a routine which they will create and title themselves.

So i’m thinking i should have a user table.
Each user will have a number of routines.
Each routine will have a number of exercises.

Therefore I will have 3 tables: user, routines, and exercises

BUT

How can i link the ‘routines’ and ‘exercises’, because ‘routines’ is going to have to be more than one table, because if you imagine a user creates “biceps” routine and fills it with exercises. Then he creates “triceps” and fills it with exercises. He will then have to have two routine tables called ‘biceps’ and ‘triceps’.

So how can I structure my database to accommodate this?

bearing in mind each user has a unique ID
Every exercise has a unique ID
and Every Routine has a unique ID.

  • 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-14T05:44:38+00:00Added an answer on June 14, 2026 at 5:44 am
    create table users(
    userid int not null AUTO_INCREMENT PRIMARY KEY,
    firstname char(30) not null,
    lastname char(30) not null
    );
    
    create table routines(
    rid int not null AUTO_INCREMENT PRIMARY KEY,
    userid int not null,
    rname char(30) not null
    );
    
    create table execises(
    eid int not null AUTO_INCREMENT PRIMARY KEY,
    rid int not null,
    ename char(30) not null
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couple of links on an in-progress website that will display what
I have website where users can login with their Facebook account. I am using
I'm using jQuery. I have website feature that does an ajax search and returns
I have a task to create a website that'll allow creating small websites, mostely
I'm working on a website that will allow instructors to report on the academic
So basically I have website that has names of cities that can be checked
I have a website which using active directory authorization on a windows server in
I have a website that is mainly based on JavaScript. It uses a REST
fellow devs! I have a class for posting to website using a POST or
I have a website with a form that uses PHP to send the form

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.