I am a bit new to JOINs and I am having trouble with this JOIN. I
don't get an error until the last AND and then it says:
[Macromedia][Oracle JDBC Driver][Oracle]ORA-00933: SQL command not
properly ended
SELECT empower_local_case_studies.*,empower_registration.email
FROM empower_local_case_studies,empower_registration
WHERE page= (param 1) AND project = (param 2) AND
empower_local_case_studies.local_case_study_id =
empower_registration.registration_id
ORDER BY empower_local_case_studies.local_case_study_id ASC
the coded query:
<cfset session.user_consultation_db = 'empower_local_case_studies'>
<CFQUERY NAME="get_record" DATASOURCE="dch">
SELECT #session.user_consultation_db#.*,empower_registration.email
FROM #session.user_consultation_db#,empower_registration
WHERE page= <cfqueryparam value="#url.page#" cfsqltype="cf_sql_varchar">
AND project = <cfqueryparam value="#session.project_id#"
cfsqltype="CF_SQL_NUMERIC">
AND #session.user_consultation_db#.local_case_study_id =
empower_registration.registration_id
ORDER BY
#session.user_consultation_db#.#session.user_consultation_idfield# ASC
</CFQUERY>
thanks.
--
Daniel Kessler
Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD 20742-2611
301-405-2545 Phone
www.phi.umd.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208778
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54