I am not sure, if this question is the coldfusion related; but I am having a smaller problem with the ODBC connection / SQL query...
I am trying to select a single row from the SQL query, but I am not getting it right; And I need some helping hand... The Query I am trying to execute looks like something like this:
<cfquery name="userpermissionquery" datasource="#db_dbsource#" dbtype="#db_dbtype#" username="#db_username#" password="#db_password#">
SELECT DISTINCT UserPermissions.section_id, Sections.descriptions
FROM UserPermissions, Sections
WHERE uid=#userquery.id#
AND Sections.id = UserPermissions.section_id
</cfquery>
It's odd;;; I am trying to whip this up for many hours now... Can someone give me helping hand? Thanks!
Regards. ~W.
I am trying to select a single row from the SQL query, but I am not getting it right; And I need some helping hand... The Query I am trying to execute looks like something like this:
<cfquery name="userpermissionquery" datasource="#db_dbsource#" dbtype="#db_dbtype#" username="#db_username#" password="#db_password#">
SELECT DISTINCT UserPermissions.section_id, Sections.descriptions
FROM UserPermissions, Sections
WHERE uid=#userquery.id#
AND Sections.id = UserPermissions.section_id
</cfquery>
It's odd;;; I am trying to whip this up for many hours now... Can someone give me helping hand? Thanks!
Regards. ~W.