Solved

Business Objects Query

Posted on 2013-06-06
6
363 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 73

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 73

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 73

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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Generate HTML charts from SQL 4 51
Oracle SQL Select Statement 19 58
null value 15 65
Maintaining Oracle Managed Accounts 2 20
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ā€¦
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now