CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Datasource Build Query Question

Print topic Send  topic

Author Message
afrausto

Posts: 66
Posted: 05/08/2006, 10:18 PM

Hello Can anyone tell how to accomplish the following for a grid. I'm trying to display the results from two tables. Table A contains records of contestants. Table B contains the judges scores of contestants. The judges have been delegated certain groups to judge, all contestants are score by one judge only. I want to display all of the records in Table A for this year's contestants and include any scores entered by judges so far.
This is what I have so far:

SELECT ContestantName, JudgeScore
FROM tblContestants LEFT JOIN tblJudgesReview ON
tblContestants.PID = tblJudgesReview .PID
WHERE tblContestants.Year_of_Contest = '2006'
AND tblContestants.ApplicationComplete = {True}
AND tblJudgesReview.TypeOfReviewer = '{40}'
ORDER BY ContestantName

I'm not getting the expected results, because if a contestant does not have a score from a judge in tblJudgesReview then the record is not displayed. I want to show all records from tblContestants regardless if they have been given a score by their assigned judge.

I'm using CCS/ASP/MsAccess

Thanks,
Albert
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.