Solved

Business Objects Query

Posted on 2013-06-06
6
366 Views
Last Modified: 2013-07-15
I am using BI4 and need some help with a business objects query. the query works fine except for returning all dates. The query has an effective date field and I dont want every date for each person just the latest date.
0
Comment
Question by:CMILLER
  • 3
  • 3
6 Comments
 
LVL 74

Expert Comment

by:sdstuber
ID: 39226531
select * from
(select t.*,row_number() over(partition by person order by effective_date desc) rn
from your_table t)
where rn = 1
0
 

Author Comment

by:CMILLER
ID: 39226561
How do I add that into BI4? See the attached.
BI4-QUERY.JPG
BI4-QUERY-1.JPG
0
 

Author Comment

by:CMILLER
ID: 39226586
Also, what do I need to replace to get it to work.

select * from
(select t.*,row_number() over(partition by person order by effective_date desc) rn
from your_table t)
where rn = 1
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 39226607
create a view in your database that looks like that query except change the table and column names to whatever is appropriate for your real source table.

Then add that view to your universe and query it as if it were the original table  The only difference will be you'll have an extra "rn" column you might want to ignore.  You could remove that from the view though by specifying the columns instead of *
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 39226612
or, if you don't have the option of putting that in the database, you could create a derived table within the universe much the same way and then use the derived table instead of the original source table
0
 

Author Comment

by:CMILLER
ID: 39242145
ok, I will try that. Thanks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to recover a database from a user managed backup

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question