Hello Gurus,
I want to implement "Not In" using Input Parameter of type Column with multiple values from control table.
I would like to filter out the data based on control table.
My SGK_CONTROL Table has values (20,40,80) in ID column. I have departments (10,20,30,40, ......... 120) in employees table.
The processing should be done for all the records except values in control table. i.e. 20,40,80.
SQL would be like this.
select job_id, department_id, sum(salary)
from employees
where department_id not in (select id from sgk_control);
Please go through all the attached Images.
I need to understand following:
- Why it is asking/prompting for input, however, it is already assigned/defined (all column values from the table/view) while creating Input Parameter?
- How do I filter out the data using SGK_CONTROL table?
- Why the data is processed for the entered values (20,40 here in the screen shot) if I have mentioned the predicate "(not in ("DEPARTMENT_ID",$$IP_DEPT_NO$$))" ?
- Why it is using IN predicate however I have defined as NOT IN?
Request your inputs so that I can understanding SAP HANA Input Parameters more !
Thanks in advance.
Shirish.
Image# 1
Image# 2
Image# 3
Image# 4
Image# 5
Image# 6
Image# 7
Image# 8