GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  BO Designer
Go To First  |  Previous Question  |  Next Question 
 BO Designer  |  Question 114 of 117    Print  
AS OF DATE Filter to automate
Hello Guys,

I am creating a WEBI from my universe which is using ORACLE database as backend. I have the following query which i need to automate. For that i need to create a filter in the unvierse i don't know which statement i should write in the universe filters.

SELECT
WMB.DEPOSITS_TXN_DETAIL.AS_OF_DATE,
WMB.DEPOSITS_TXN_DETAIL.TXN_CODE,
WMB.DEPOSITS_TXN_DETAIL.TXN_POSTING_DATE,
WMB.DEPOSITS_TXN_DETAIL.SYS_SUB_PROD_CD,
WMB.DEPOSITS_TXN_DETAIL.SYS_PROD_CD,
count(distinct WMB.DEPOSITS_TXN_DETAIL.TXN_AMOUNT),
sum(WMB.DEPOSITS_TXN_DETAIL.TXN_AMOUNT)
FROM
WMB.DEPOSITS_TXN_DETAIL
WHERE
(
( WMB.DEPOSITS_TXN_DETAIL.AS_OF_DATE BETWEEN trunc (to_date(add_months(sysdate,-1)),'Month') AND last_day(add_months(sysdate,-1)) )
AND
WMB.DEPOSITS_TXN_DETAIL.TXN_POSTING_DATE BETWEEN '16-02-2008 00:00:00' AND '22-02-2008 00:00:00'
AND
WMB.DEPOSITS_TXN_DETAIL.TXN_CODE = 1105
AND
WMB.DEPOSITS_TXN_DETAIL.SYS_PROD_CD = 'DDA'
)
GROUP BY
WMB.DEPOSITS_TXN_DETAIL.AS_OF_DATE,
WMB.DEPOSITS_TXN_DETAIL.TXN_CODE,
WMB.DEPOSITS_TXN_DETAIL.TXN_POSTING_DATE,
WMB.DEPOSITS_TXN_DETAIL.SYS_SUB_PROD_CD,
WMB.DEPOSITS_TXN_DETAIL.SYS_PROD_CD


--AS_OF_DATE is a weekly upload but end of the month AS_OF_DATE become monthly data. and weekly no data available. My post date is the only source i can use but i don't know which code to write in a filter.


Any help would be appreciated!!!!



  
Total Answers and Comments: 1 Last Update: June 11, 2008     Asked by: jd_usnj 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 11, 2008 03:45:28   #1  
Balajikaadi Member Since: June 2008   Contribution: 1    

RE: AS OF DATE Filter to automate
Hi
This can be handled as a condition object. Understand from the filter name (as of date) The condition object query should only contain the below statement. But of course.. you should have the associate objects in the class only then u can use them.

make sure that you have Objects --WMB.DEPOSITS_TXN_DETAIL.AS_OF_DATE and WMB.DEPOSITS_TXN_DETAIL.TXN_POSTING_DATE ..

your filter query will have these details.

( WMB.DEPOSITS_TXN_DETAIL.AS_OF_DATE BETWEEN trunc (to_date(add_months(sysdate -1)) 'Month') AND last_day(add_months(sysdate -1)) ) AND WMB.DEPOSITS_TXN_DETAIL.TXN_POSTING_DATE BETWEEN '16-02-2008 00:00:00' AND '22-02-2008 00:00:00' AND

 
Is this answer useful? Yes | No

 Related Questions

The graphical component within the main Designer window that displays a hierarchical view of the classes, objects, and conditions in a universe. Two radio buttons on the lower edge of the pane filter the 

Latest Answer : Local Filter >>Specific to a block (Table/cross tab/ chart etc..)Global Filter >> Specific to a TAB in a reportIf a report has multiple Tabs, each can have its own Local and Global filters. ...
Read Answers (2) | Asked by : bhargav

Product date salesp1 20/Jan/1999 100p1 20/Feb/1999 200p1 20/apl/1999 100p1 20/DEC/1999 50p1 20/Jan/2000 100p1 20/mar/2000 500now i want query like product ,sum of actual year ,sum of business yearp1 450 750here actual year means 1 Jan 1999 to 31 st Jan 1999business year means 1 st APR 1999 to 31 st mar 200pls give me answer as early as possible..
Read Answers (1) | Asked by : reddepa

Hello Guys,I am creating a WEBI from my universe which is using ORACLE database as backend. I have the following query which i need to automate. For that i need to create a filter in the unvierse i don't 
Latest Answer : Hi,This can be handled as a condition object. Understand from the filter name (as of date) The condition object query should only contain the below statement. But of course.. you should have the associate objects in the class only then u can use them.make ...
Read Answers (1) | Asked by : jd_usnj


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape