Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

question on Queriable Attributes

pollywogFeb 16 2012 — edited Feb 16 2012
sorry I am a bit new to ADF and I'm sure this is a common requirement but I could not find the solution anywhere.

I will use the HR schema to demonstrate my problem

How do I set up a search that allows using employee info to retrieve distinct department info without duplicate rows?

for example if I have a view object something like
WITH t
     AS (SELECT emp.first_name,
                emp.last_name,
                salary,
                hire_date,
                department_name,
                location_id
           FROM hr.employees emp JOIN HR.DEPARTMENTS USING (department_id))
SELECT DISTINCT department_name, location_id
  FROM t
is there a way that when I pick All Queriable Attributes and put it on the form the user can search for say the departments where exists employees whose last name start with A
without displaying the employee info in the table?
so the table would just show department_name and location_id.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2012
Added on Feb 16 2012
2 comments
155 views