473,382 Members | 1,357 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,382 software developers and data experts.

Database Design

Could someone please help shed a little light on a database query I
have.

Here goes:

I am in the process of building a access database for a local football
team and have the following tables.

Players
Fixtures
Teams
Clubs
Player Positions
Player Status (ie.retired, injured etc)
Sponsors
Sponsor Agreements
etc....

My problem is, that in creating a fixture I am having problems
identifying how to populate the fixture table as the relationship is
currently 'A team can have many fixtures and a fixture must have two
teams'.

In relational terms I can't see how to pull two teams from the team
database to make a fixture???

Apologies if the answer is staring me in the face but I have run out of
coffee and have resorted to finding a soft spot on the wall to bang my
head against....

Any help would be most appreciated.

Regards,
Paul

Nov 23 '05 #1
7 2539
I don't know what a Fixture is so I'm assuming it's a contest between two
teams. If correct, your Fixtures table would be like a schedule looking
like:
TblFixture
FixtureID
FixtureDate
etc

You then need another table associating the two teams with a Fixture. That
table would liik like:
TblContest
ContestID
HomeTeamID
VisitingTeamID

HomeTeamID and VisitingTeamID would be foreign keys related to TeamID in
your Team table.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

If you can't get the help you need in the newsgroup, I can help you for a
very reasonable fee. Over 1000 Access users have come to me for help.
Need a month calendar or 7 day calendar? Need appointment scheduling? Need
room reservations scheduling? Need employee work scheduling? Contact me!


<pa************@blueyonder.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Could someone please help shed a little light on a database query I
have.

Here goes:

I am in the process of building a access database for a local football
team and have the following tables.

Players
Fixtures
Teams
Clubs
Player Positions
Player Status (ie.retired, injured etc)
Sponsors
Sponsor Agreements
etc....

My problem is, that in creating a fixture I am having problems
identifying how to populate the fixture table as the relationship is
currently 'A team can have many fixtures and a fixture must have two
teams'.

In relational terms I can't see how to pull two teams from the team
database to make a fixture???

Apologies if the answer is staring me in the face but I have run out of
coffee and have resorted to finding a soft spot on the wall to bang my
head against....

Any help would be most appreciated.

Regards,
Paul

Nov 23 '05 #2
A quick note to anyone reading this message thread. This newsgroup is an
excellent resource for getting help with your Access projects. If you feel
the need, however, to seek professional help, I strongly advise that you not
consider hiring this PC Datasheet character. Steve is a bright kid but is
totally unprofessional. The CDMA charter prohibits advertising, Steve is the
only consultant that refuses to adhere to that charter. There are literally
hundreds of competent Access consultants available. Many post regularly in
this newsgroup, others can easily be located by googling or visiting
guru.com.

Nov 23 '05 #3
I would have in my fixtures table something like

FIXTURE TABLE
--------------------
FixtureNo
HomeTeamID
HomeTeamScore
AwayTeamID
AwayTeamScore
Date
Anything else..

Your index in the TEAM table would then link to HomeTeamID and AwayTeamID

Any calculations you want to make in queries such as points, won, lost, drew
can be simply done from the fixtures table

Ian


<pa************@blueyonder.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Could someone please help shed a little light on a database query I
have.

Here goes:

I am in the process of building a access database for a local football
team and have the following tables.

Players
Fixtures
Teams
Clubs
Player Positions
Player Status (ie.retired, injured etc)
Sponsors
Sponsor Agreements
etc....

My problem is, that in creating a fixture I am having problems
identifying how to populate the fixture table as the relationship is
currently 'A team can have many fixtures and a fixture must have two
teams'.

In relational terms I can't see how to pull two teams from the team
database to make a fixture???

Apologies if the answer is staring me in the face but I have run out of
coffee and have resorted to finding a soft spot on the wall to bang my
head against....

Any help would be most appreciated.

Regards,
Paul

Nov 23 '05 #4
This is Randy Harris a liar who is insincere and a person that can not be
trusted.

Randy,

Why don't you follow the advise of David Fenton ---

"Stop. I'm on the verge of killfiling the bunch of you who are
polluting the newsgroup with theis bitchfest."

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

If you can't get the help you need in the newsgroup, I can help you for a
very reasonable fee. Over 1000 Access users have come to me for help.
Need a month calendar or 7 day calendar? Need appointment scheduling? Need
room reservations scheduling? Need employee work scheduling? Contact me!
"StopTheAdvertising" <no****@pcdatasheet.com> wrote in message
news:qP*****************@newssvr24.news.prodigy.ne t...
A quick note to anyone reading this message thread. This newsgroup is an
excellent resource for getting help with your Access projects. If you feel
the need, however, to seek professional help, I strongly advise that you
not
consider hiring this PC Datasheet character. Steve is a bright kid but is
totally unprofessional. The CDMA charter prohibits advertising, Steve is
the
only consultant that refuses to adhere to that charter. There are
literally
hundreds of competent Access consultants available. Many post regularly
in
this newsgroup, others can easily be located by googling or visiting
guru.com.

Nov 23 '05 #5
Hi Ian,

Many thanks, by index do you mean relationship as there will only be
TeamID in the TEAM table. Apologies for the blank expression.

Regards,
Paul.

Nov 24 '05 #6
Ian, ignore my last I've suddenly hit the right spot on the wall and
worked it out.....

Thanks for you help.

Regards,
Paul.

Nov 24 '05 #7
Hi and thanks so much for your help.

I have managed to work out the problem after banging my head enough
times.
Regards,
Paul.

Nov 24 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rushikesh | last post by:
I am designing a WEB BASED Accounting Software with ASP and SQL Server. For this I need some help for the Database design. My design is as follows. I)User table: User_id, UserName..... Users...
5
by: Don Vaillancourt | last post by:
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of...
1
by: Lane Beneke | last post by:
All, New to the list and a relative newbie to PostgreSQL. Please forgive stupid questions. Designing an application server for a work order processing (et al) database. I have a good handle...
5
by: trynittee | last post by:
Hello, It's been a while since I've posted. I am an intermediate user of Access. I can read simple VB code, have done complex queries, comfortable with event procedures, designing forms and...
12
by: nyathancha | last post by:
Hi, I have a question regarding best practices in database design. In a relational database, is it wise/necessary to sometimes create tables that are not related to other tables through a...
3
by: vicky | last post by:
Hi All, Can u please suggest me some books for relational database design or database modelling(Knowledgeable yet simple) i.e. from which we could learn database relationships(one to many,many to...
0
by: Laurynn | last post by:
# (ebook - pdf) - programming - mysql - php database applicati # (Ebook - Pdf)Learnkey How To Design A Database - Sql And Crystal Report # (ebook-pdf) E F Codd - Extending the Database Relational...
1
by: abhijitbkulkarni | last post by:
Hello, I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but...
0
by: sam | last post by:
Hi, Hope you are doing well !!!! One of our clients is looking to augment their team with “Database Architect – DB2" please find below the details and respond with
2
by: programmerx101 | last post by:
Ok, I'm looking for expert advice on this one. I have a database which keeps going into read_only mode. Sometimes it goes into read_only / single user mode. Once it was taken offline completely....
0
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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.