Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 02-15-2010, 09:01 AM need help
Junior Talker

Posts: 2
Name: Aleksandar
Trades: 0
I need help for database modeling and query. I am makeing sport statistic site and have no idea how to make Head-to-head section. I have two tables in mysql database. One with players (ID, name, country....) Second with matches between players (ID, player 1, score 1, player 2, score 2, tournament, season....). I need to have two dynamic drop-down menus with players. User have to select from them two players, click on Button and see query abut matches between selected two players. I suppose, that need to have third table and make many-to-many relationship, but not sure. I need ideas, please!
dekrelo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2010, 07:49 AM Re: need help
Junior Talker

Posts: 2
Name: Aleksandar
Trades: 0
My detailed question:

I have 3 tables:
1. players (player_id, player, country, dob.....)
2. matches (matches_id, player1, score1, player2, score2, tournament, season....)
3. playerMatches (player_id, matches_id)

I have many-to-many relationship. I need to query all matches between whoever two selected from user players.
That is my question? Thanks!
dekrelo is offline
Reply With Quote
View Public Profile
 
Old 02-24-2010, 07:59 AM Re: need help
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I'd suggest you hire a database Designer/Administrator with any luck they will be able to get ALL the information necessary to give you a useful answer.

As it stands the best I can offer is: Use a JOIN query of one sort or another.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to need help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19960 seconds with 12 queries