LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-07-2004, 02:53 PM   #1
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Rep: Reputation: 30
SELECT and INNER JOIN


Im joining PredictionData to MisEquipos on the username. There are two rows in MisEquipos with the same username. For that reason every row in PredictionData are duplicated.

One set of results for equipo "A" and the other set for equipo "B".

How can be the SELECT without duplicate that.?


SELECT MisEquipos.equipo, PredictionData.homescore, PredictionData.awayscore FROM PredictionData INNER JOIN Campeonatos ON PredictionData.campeonatos = Campeonatos.campeonatosmainID INNER JOIN Divisions ON MisEquipos.campoalt = Divisions.equipoID INNER JOIN MisEquipos ON PredictionData.username = MisEquipos.username WHERE MisEquipos.campoalt = 76 order by MisEquipos.equipo, PredictionData.matchdate;




Thanks a lot
 
Old 06-07-2004, 03:09 PM   #2
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Original Poster
Rep: Reputation: 30
Sorry I fixed it.... Moderator now you can delete this post .

Thanks..
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help using 'net join' to join a windows domain Wapo Linux - Networking 1 04-28-2006 02:30 AM
Select() did not select my socket thvo Programming 1 05-08-2005 12:20 AM
Join more computers as one ??? drzile Linux - Software 4 04-16-2005 10:15 PM
Join my LUG Pwnz3r General 1 03-03-2004 06:31 AM
Join a project? Help spoody_goon Linux - Software 3 11-18-2003 09:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration