[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Need some query help, having multiple outputs when I only need 1

Asked by jag5311 in MySQL Server

Let me see if I can straighten out that subject.

Here is my query so far

<cfquery name="games" datasource="#dsn#">
SELECT games.gamename, articles.gameID
FROM games INNER JOIN articles ON games.gameID=articles.gameID
WHERE articles.gameID>0 AND articles.typeID=1
</cfquery>

what that is saying is I want the gamename and gameID   where the gameID's from two tables match.  I also want what is outputted to make sure the gameID is greater then 0 and the articles typeID equals 1 (which is a cheat).

WHat is happening though, is that a game may very well have more then 1 cheat, so if gameID of 5  has multiple typeID=1, like this

gameID -------------typeID

5         ----------------1
5        -----------------1

etc..,

for an example, visit this link, http://www.gamecubecheats.info/gamecube-cheats.cfm

Notice the two NBA LIve 2003's.  Currently in my database, there are two cheat articles associated with that game, so my query is currently working, its just that I only want the game to be shown once even if there are multiple cheats.

Make sense?

Thanks
Bryan
[+][-]12/21/03 10:21 AM, ID: 9981729Accepted Solution

Your question has an Asker Certified™ answer! jag5311 verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zone: MySQL Server
Sign Up Now!
Solution Provided By: JakobA
Participating Experts: 1
Solution Grade: A
 
 
Related Solutions
Keywords: Need some query help, having multipl…
 
Loading Advertisement...
 
[+][-]12/21/03 09:16 AM, ID: 9981541Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/21/03 09:31 AM, ID: 9981583Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/21/03 09:45 AM, ID: 9981615Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/21/03 10:08 AM, ID: 9981692Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/21/03 10:34 AM, ID: 9981764Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20100308-EE-VQP-141
Your technology problems solved.
Close See Plans and Pricing. Try it FREE for 30 days.