I have a list of keys in a function (XTSTSEC) that I create in order to prevent duplicate rows from being reported. These keys are dependent on a course. So I would like to have something like this work, but it does not.
select *
from COURSE_SECTIONS CS, COURSE_SECTIONS_LS CSL
where CS.COURSE_SECTIONS_ID = '33644'
and CS.COURSE_SECTIONS_ID = CSL.COURSE_SECTIONS_ID
and CSL.SEC_MEETING IN (dbo.XTSTSEC (CS.COURSE_SECTIONS_ID))
I've tried to make the list with single quotes, without quotes, etc. When there is only one in the list (when I removed the quotes) and I change the IN to = it works.
Is something like this possible. I am limited to they environment I'm in what I can do with creating these functions (virtual fields) from the database.
select *
from COURSE_SECTIONS CS, COURSE_SECTIONS_LS CSL
where CS.COURSE_SECTIONS_ID = '33644'
and CS.COURSE_SECTIONS_ID = CSL.COURSE_SECTIONS_ID
and CSL.SEC_MEETING IN (dbo.XTSTSEC (CS.COURSE_SECTIONS_ID))
I've tried to make the list with single quotes, without quotes, etc. When there is only one in the list (when I removed the quotes) and I change the IN to = it works.
Is something like this possible. I am limited to they environment I'm in what I can do with creating these functions (virtual fields) from the database.