I love generic joining.. makes my job so much easier.. I know how to say like...
Where table1.var1 = '#var2#'.. easy stuff, love it..
But.. I need to say WHERE table1.var1 LIKE table2.var2.. Every quote combination with * and % wildcards and all that I've tried doesn't work..
Table1.var1 has numerical values like this: ranging from 1 to around 1,300.. Table2.var2 has values like this 11_1,11_2.. The first digit ranges from 1 to 6. The second ranges from one to four, the underscore always remains in place.. the last digit ranges from 1 to 1300..
This is my exact query:
<cfquery name="getSchools2" datasource="#dsn#">
SELECT schools.region, schools.division, schools.school, scouting.thisID
FROM schools,scouting
ORDER BY region, division, school
WHERE schools.school=%scouting.thisID%
</cfquery> [ Founder of <A href=" online bible. ]
Where table1.var1 = '#var2#'.. easy stuff, love it..
But.. I need to say WHERE table1.var1 LIKE table2.var2.. Every quote combination with * and % wildcards and all that I've tried doesn't work..
Table1.var1 has numerical values like this: ranging from 1 to around 1,300.. Table2.var2 has values like this 11_1,11_2.. The first digit ranges from 1 to 6. The second ranges from one to four, the underscore always remains in place.. the last digit ranges from 1 to 1300..
This is my exact query:
<cfquery name="getSchools2" datasource="#dsn#">
SELECT schools.region, schools.division, schools.school, scouting.thisID
FROM schools,scouting
ORDER BY region, division, school
WHERE schools.school=%scouting.thisID%
</cfquery> [ Founder of <A href=" online bible. ]