473,385 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Design phase - dealing w/ many to many relationships

Currently there is an Show Registration applicaiton in Access with 5 back ends, I would like to combine the 5 back ends into one DB using SQL Server.

Background info
5 backends because there are 5 shows they do every year
Some of the tables involved are exhibiotrs, repGroups, booths, dealers and members. the relationship between the exhibitors and repgroups are many to many.

New design
Create a new table called showInfo
The problem that I am running into is that the relationshiop between the exhibitors and/or dealers and the showid can be many to many (not the normal, but does happen). What would be the best way to incorporate consolidating the 5 different databases into one?

Ideally when the applicaiton is ran, the user will be able to select which show information they will be working on. We have determined the user would only be looking at one show at a time.

Again I am just in the design phase and am having troubles setting up the relationships.

Jan 19 '07 #1
1 1827
1,017 Expert 512MB
I donít think it is a problem when user looks at one show at a time you just have to use where condition with ShowID to make sure you recieved data for correct show.
When you have many to many relationship you create intermediate table to have multiple relationships managed. This table should hold only ShowID, ExibitorID , another table should be between show and dealers where you will have ShowID, DealerId.
This way each show can have multiple ExibitorIDs and one ExibitorID can have multiple shows.
To get data from such tables for example named Show, Exibitor, ShowExibitor
[PHP]Select s.ShowName, e.ExibitorName
From Show s
Join ShowExibitor se on s.ShowID = se.ShowID
Join Exibitor e on se.ExibitorID = e.Exibitor_id[/PHP]

The same should be for Dealers.

Good Luck.
Jan 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Joe | last post by:
I'm designing a company website. I'm relatively new to CSS and I'm having trouble creating what seems to me a very simple design: - body background: fixed full page image - banner: fixed, 100...
by: malcolm | last post by:
Hello, We have a robust (.NET 1.1 c# winforms) client-server application that utilizes many typed DataSets, typed DataTables and typed DataRows. Our application is a series of windows and popup...
by: Guadala Harry | last post by:
I have a need to display nodes in a hierarchy - an inverted tree of sorts - but a bit more complicated than a simple tree or set of inverted trees. The nodes I'm dealing with exist in a definite...
by: malcolm | last post by:
Hello, We have a robust (.NET 1.1 c# winforms) client-server application that utilizes many typed DataSets, typed DataTables and typed DataRows. Our application is a series of windows and popup...
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.