Jump to content
We've recently updated our Privacy Statement, available here ×

How to add database hint in ADHOC VIEW


mrachakonda

Recommended Posts

Hello All,

I am new to Jaspersoft and currently work in product support in my organization. Working on solving a tuning a query. I have query which i have tuned using some database hint

SELECT /*+ HINT */  DIMENTION1 , DIMENTION2, FACT1,FACT2,FACT3 FROM TABLE 1, TABLE 2 WHERE < > AND  ETC ETC.

This query is working fine. But when same query used to build report in the Jaspersoft it is not taking hint because in the adhoc view the query which is build and running is 

 

SELECT DIMENTION1 , DIMENTION2 , SUM(FACT1), SUM(FACT2), SUM(FACT3) FROM

(  SELECT /*+ HINT */  DIMENTION1 , DIMENTION2, FACT1,FACT2,FACT3 FROM TABLE 1, TABLE 2 WHERE < > AND  ETC ETC.

)

My questios in how can i add /*+ HINT */  in the top select statement. Please help me out. Thanks a lot.

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...