I have a one-to-many relationship between two tables. But when I create my OBIEE analysis, I only want to return the most recent record from the second table.
For example:
Table1: Employees
Table2: Help Desk Tickets
I want to create an analysis that lists only the most recent help desk ticket for a given employee. A basic SQL statement works great.
select EMP.employee_ID,
HELP.ticket_number
from tabEmployees EMP,
tabHelp HELP
where EMP.employee_id = 123
and EMP.employee_id = HELP.employee_id
and HELP.ticket_number = (select max(ticket_number) from tabHelp where employee_id=123)
How would I achieve these results in an OBIEE analysis? Is this an RPD change or catalog change or some combination thereof?
Thanks,
Dennis