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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:18:49+00:00 2026-05-12T13:18:49+00:00

im developing a simple access application that helps us to order the right products

  • 0

im developing a simple access application that helps us to order the right products for a project. i have a table for each contractor containing its products. i have a table “favorite-products” that relates to products and gives additional information how and when they should be used.

normally id have a big table (containing all products) that has a contractor-column. i my favorite-products table i could then easyly relate to a product. but here i need to keep the products in separate tables. so whats the best way to connect my favorite-products table with the products in the contractor-tables?

thanks 🙂

  • 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-05-12T13:18:49+00:00Added an answer on May 12, 2026 at 1:18 pm

    This is not the best design.

    You should UNION all contractor tables together and JOIN with the result:

    SELECT  *
    FROM    (
            SELECT  product
            FROM    contractor1
            UNION ALL
            SELECT  product 
            FROM    contractor2
            UNION ALL
            …
            ) c
    JOIN    favorite f
    ON      f.product = c.product
    

    You better keep one single table for you products with contractor as a field.

    It will be much easier to query and to manage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am developing a simple application based upon ASP.NET MVC. I have altered
I'm developing an iPhone application that will access XML files (or something similar) from
I am developing a simple website with few JSP pages. Each jsp does have
I'm developing an application that will have a parent class which will have many
I am developing a simple web page to be viewed after an iphone application
I'm developing an application (winforms C# .NET 4.0) where I access a lookup functionality
I'm developing a java servlet web application that manages information from multiple databases (all
I'm developing a scientific application that has to estimate (as best as possible) the
I am developing an asp.net mvc web application that makes much use of jquery
I am developing an application that store some data in a Amazon SimpleDB instance.

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.