Question
Odd query problem
Ok, here's the query I have:
<cfquery name="Results" datasource="SalleBoise">
select r_results_file
from clubtournaments, tournresults
where clubtournaments.TournID=tournresults.r_id
</cfquery>
The problem is that I'm getting results in the r_results_file for items
that don't match.
I'm first getting the ID's I need by:
<cfquery name="TournamentList" datasource="SalleBoise">
select * from clubtournaments
where
Tourndatetime > <cfqueryparam cfsqltype="cf_sql_date"
value="#DateAdd("d",-3,now())#">
and Tourndatetime < <cfqueryparam cfsqltype="cf_sql_date"
value="#DateAdd("m",3,Now())#">
</cfquery>
But I'm getting the ID of an event that has the date of 2008-04-05 09:00:00
And that ID is being used in the query at the top of this posting.......
Why would this be happening?
<cfquery name="Results" datasource="SalleBoise">
select r_results_file
from clubtournaments, tournresults
where clubtournaments.TournID=tournresults.r_id
</cfquery>
The problem is that I'm getting results in the r_results_file for items
that don't match.
I'm first getting the ID's I need by:
<cfquery name="TournamentList" datasource="SalleBoise">
select * from clubtournaments
where
Tourndatetime > <cfqueryparam cfsqltype="cf_sql_date"
value="#DateAdd("d",-3,now())#">
and Tourndatetime < <cfqueryparam cfsqltype="cf_sql_date"
value="#DateAdd("m",3,Now())#">
</cfquery>
But I'm getting the ID of an event that has the date of 2008-04-05 09:00:00
And that ID is being used in the query at the top of this posting.......
Why would this be happening?
