I Am coming to a problem where I am trying to convert my sql statement to do the same logic in cfml (cfscript>) so, I am trying to mimic this sql statement to display the results inside my cfscript. can somebody help me solve this issue? thanks for the help.
SQL:
select * from myapp.GGG_myphone where department_name
like (select distinct department_name from myapp.GGG_myphone
where department_nbr like '#DEPT_FUND_NBR#' )