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 7 2540
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
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.
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
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.
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.
Ian, ignore my last I've suddenly hit the right spot on the wall and
worked it out.....
Thanks for you help.
Regards,
Paul.
Hi and thanks so much for your help.
I have managed to work out the problem after banging my head enough
times.
Regards,
Paul. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |