The generation dynamic SQL when records using custom

Hi all

We have a few custom folders (we did not create the views) where we joined the table of facts with several dimensions of code so that users don't need to go through several folders. Currently every time a user selects a field in the record, it will automatically joins all the dims in accordance with the definition of record. Is it possible, when the user select only the fact of the table fields in the folder then the sql access only the table of facts (as in dynamic sql) leaving aside the joints.

I'm not positive all able to do so. But even post the question to check if there is a solution found by any one.

Here's the hypothetical scenario:

SQL for my custom folder:

Select
EMP.emp_id,
EMP.emp_name,
job_id EMP.,.
jobs. job_desc,
EMP.location_id,
Location.location_desc,
EMP. Salary
of the emp, jobs, location
where emp.job_id = jobs.job_id
and emp.location_id = location.location_id;

In the example above, when the user select only the emp_id and emp_name, discoverer only accesses the emp table, leaving aside joins jobs and location tables?

Appreciate your answers.

Hello

There are 3 approaches you can take, which is best for you depends on your database and the version of discoverer and how much change you want to make:

1. optimization of data - if you use database 11 g and the query sent to the database does not refer to an attachment internal table in the first select statement in the query, for example, the query

Select
EMP.emp_id,
EMP.emp_name,
job_id EMP.,.
jobs. job_desc,
EMP.location_id,
EMP. Salary
of the emp, jobs, location
where emp.job_id = jobs.job_id
and emp.location_id = location.location_id;

does not reference the table of localization, so as long as location_id is the primary key for location and emp.location_id has a validated and enabled foreign key constraint then the database query plan will not otherwise the table of localization.

2 synthesis discoverer files - you can manually set the summary files in admin discoverer that contain queries custom with less joins of tables. Thus, for example, you could put

Select
EMP.emp_id,
EMP.emp_name,
job_id EMP.,.
jobs. job_desc,
EMP.location_id,
EMP. Salary
of the emp, jobs
where emp.job_id = jobs.job_id;

in a personalized summary folder and discoverer would redirect the request to the summary file if the location has not been used. You can also do a similar thing to the database level using the views and materialized views.

3. complex records discoverer - you can change your custom folder in a folder complex bringing together two or more straightforward cases. If the columns mapped to a single file are not reference, then all joins and discoverer preferences are set correctly the generated query does not reference the table in the simple folder.

Rod West

Tags: Business Intelligence

Similar Questions

  • Set the amplitude of mike when recording directly in hearing CC?

    I can't figure out how to set the amplitude of mike when recording directly in hearing CC.


    When I load hearing I have click on the waveform and create a file.


    I can then click on the Red record button and start recording, but the amplitude is very small.


    I know I can fix it in post editing but how to adjust the amplitude record raw?


    Well, I looked at the manual. If I try to use a microphone with this mobo, I'd be very inclined to mount the system audio front panel, as it seems to have an understanding of slightly different mic that work peut better (although I think that you must run the configuration utility to configure). The details of this are on page 30 of the manual. For starters, it seems that he might in fact be two mic channels, which probably means that they took little seriously, a little more than usual.

    I still think that the preamp is better, but I won't get it a chance to consider the issue until tomorrow.

  • CC of Dreamweaver generates one of the 3 error messages when you use find and replace on 8.1 Win 64 bit.

    CC of Dreamweaver generates one of the 3 error messages when you use find and replace is used more than twice in a row. "While executing onLoad in bc_afterSave.htm, the following JavaScript error occurred: at line 188 of file C:\Program Files (x 86) \Adobe|. Adobe DreamweaverCC | Configuration | Shared | ' BC\JS\bc_sites.js': out of memory.

    or

    When executing RunCommand in File_Save.htm, a JavaScript erroroccurred.

    or

    While exciting getDynamicContent inAdressURL.htm, an erroroccirred of Javascript.

    Any thought - I find myself CBWMS of closing and reopening. Will work for the other two find and replace once again before the popup of messaged\s error.

    Cough, cough, cough - 38 500 pages? !  Really?  It's a big site!

    I'm not surprised, that you are short of memory.  Try to limit your F & R records or select files rather than the entire Site.

    Nancy O.

  • Governor limit exceeded in the generation of cube (data records Maximum exceeded)

    Hello

    I have a PivotTable that contains about 30 measures and the lines are also measures. The columns are the last 12 months, I get the following error when you try to view the results:

    Governor limit exceeded in the generation of cube (data records Maximum exceeded).
    Error details
    Error codes: QBVC92JY


    I checked view pivot instanceconfig.xml and these settings are set to higher values:

    < CubeMaxRecords > 100000 < / CubeMaxRecords >
    < CubeMaxPopulatedCells > 100000 < / CubeMaxPopulatedCells >
    < PivotView >
    < MaxVisibleColumns > 5000 < / MaxVisibleColumns >
    < MaxVisiblePages > 5000 < / MaxVisiblePages >
    < MaxVisibleRows > 100000 < / MaxVisibleRows >
    < MaxVisibleSections > 5000 < / MaxVisibleSections >
    < / PivotView >

    I do not know why this error pops up as the set of data is not large, there are 30 rows and 12 columns.

    I followed http://obiee101.blogspot.com/2008/02/obiee-controling-pivot-view-behavior.html

    Can anyone help?

    Thank you

    Hello

    Increase the size of CubeMaxRecords and CubeMaxPopulatedCells and check it out.

    600000
    600000

    See you soon,.
    Aravind

  • How to choose the display by default when you use two screens on my Mac Pro?

    How to choose the display by default when you use two screens on my Mac Pro?

    The default view when you have several is made that you drag the little icon in the menu bar in this pane:

    .

  • Firefox does not open after the update. Cannot open the profile technical, even when you use the directory in cmd line path

    I'm using Firefox on a Windows 7 computer. Firefox does not open after the last update. I read the help articles and it seems that I need to create a new profile because my settings were probably corrupted. I'm unable to open the profile technical, even when you use the directory in cmd line path. I tried the following commands in the command line:

    Firefox Pei
    "C:\Program Files (x 86) \Mozilla" PEI

    Nothing happens with every order.

    I am also running Norton Internet Security. I read a help of virtual navigation features Re article that can cause a problem. The article says to check the setting of virtualization in the internet security software and to clear the virtual cache. I went through all the menus of settings in Norton Internet Security version 21.6.0.32 and I don't see anything that looked like in "virtualization" settings, so I guess that does not apply to me. "

    If you have any ideas, I had appreaciate that your expertise!

    Hello arcandl, at the launch of the firefox is not after you double-click the shortcut, it is sometimes also a sign of active malware on a system.
    you might want to try running a scan with some various other security like the free version of malwarebytes and adwcleaner tools that are specialized to remove the adware and browser hijackers.

    Fix Firefox problems caused by malicious software

  • Is it normal in the 6s overheating iphone when you use a wi - fi connection

    is it normal in the 6s overheating iphone when you use a wi - fi connection

    Overheating is an over-used and misunderstood term.

    An iPhone will turn off if it reaches dangerous temperatures.  Leave in the Sun on the beach and you see him give a warning of the temperature and turns off.

    And Yes, all that the phone will give a little heat.  It's basically a fan less computer that uses the metal case as a heat sink to the warmth of the wick away from the card.

  • I'm looking for a software that will speed up the startup time and when I use etc.

    I'm looking for a software that will speed up the startup time and when I use the computer for a while, it is slow going on the Web site? do I need a registry cleaner? Please notify. I have two computers with xp and vista.

    The only thing that's really going to "speed up" your computer is a faster processor, more ram and a faster internet connection.  Everything else is really a waste of money (IMHO)

  • You met the C00D10D1 error message when you use Windows Media Player

    Hello

    I have no sound through Windows Media Player and also a player from Youtube and BBCi.  I have the following error message, please notify :-)

    You met the C00D10D1 error message when you use Windows Media Player. The following information can help you resolve the problem.

    Codec is missing

    Windows Media Player cannot play the file (or can't play the part of the file either audio or video) because theMP3 - codec MPEG Layer III (55) is not installed on your computer.

    The missing codec may be available for download on the Internet. For more information about codecs, seeCodecs: frequently asked questions.

    Hello
     
     
    1. What is the file type or extension that you try to play?

    If you get a message stating that your computer is missing a codec, you are probably trying to play, burn, or sync a file that was compressed by using a codec that does not include Windows or the default player. You will need to download codecs.
    Player Windows Media for Windows XP supported Codecs
    http://support.Microsoft.com/kb/291948
     
    Package of Installation of codec
     
    See also:
    Windows Media Player C00D10D1 error: MP3 - MPEG Layer III (55)
    http://Windows.Microsoft.com/en-us/Windows7/C00D10D1-55
     
    Note: The above are published in the Windows 7 category, but they apply to Windows XP too.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The images appear tense when played using the slide show in full screen

    The images appear tense when played using the slide show in full screen in Windows Vista Basic. That means that a picture of resolution 1920 x 1200 appears full screen covering although a 1920 x 1080 image seems letterbox in fullscreen. My screen resolution was put to the native resolution of 1920 x 1080. It is clear that this slide show program only keeping the proportions of the image. Earlier this problem wasn't there. I think that the slide show program addresses in such a way that my monitor could have 16:10 display of report resolution l / h. thanks for giving me a solution.

    This happens usually when the image resolution is high.

    Keep your screen resolution of 1024 x 768 and it should work fine.

  • How can I increase the size of the address bar? When I use the zoom of the icon of the tool, it only increases the size of the screen below the address bar.

    It is difficult to read the address bar in Explorer.  How can I increase the size of the address bar?  When I use the zoom tools icon it only increased the size of the screen below.

    You talk about the size of the text of the elements of windows.

    But the question was about the SIZE OF the INTERNET EXPLORER ADDRESS BAR SIZE.

    It is very difficult to use the address bar now when it 12-15% of the width of the IE.

    To change the TI: right - click on the bar next to the tabs. the drop - down menu select "show tabs on a separate line.

    That's what concerned, imho.

  • How can I prevent the access denied message when you use the shutdown command?

    I use shutdown /m \\computername/s

    I have "Access denied (5)" as an answer.
    I am admin on all my computers. Same username and password on each of them.
    How can I get this shutdown command to work remotely, so I can't access every computer command prompt via Remote Desktop?
    How can I prevent the access denied message when you use the shutdown command?

    Hello

    I suggest you to report this issue in TechNet Forums for Windows 7 networks: http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/threads

    Thank you.

  • Move the point of origin when you use the scale tool

    Hello

    Can someone tell me if it is possible to move the point of origin when you use the scale tool? By default, when I change by dragging an anchor of the corner, the opposite corner is used as the origin. Ideally, I would like to to scale using an origin that is biased, I can specify sort. I know that you can do during the rotation, but I was not able to determine if this goal is achievable during the measurement. I use Illustrator CC 2015.3.1 and Mac.

    Any help would be appreciated.

    Thanks in advance

    Jason

    Click where you want the origin to be. Or move the reticle. Exactly the same as with the rotation tool.

  • I bought the DC of Adobe Acrobat pro and completed the info online, but when I use the cd with the product code key it will not take the code?  What do I do then?

    I bought the DC of Adobe Acrobat pro and completed the info online, but when I use the cd with the product code key it will not take the code?  What do I do then?

    Thanks Anubha Goel, final I got it to work... The serial number in the physical box that you buy in the store wasn't the number for the software.  It was the serial number in the cloud, very difficult to know when you see a serial number in the box with the Cd online.  But thanks for the reply to my post. I'll be in offline mode after clicking on answer...  Thank YOU Ana Maria

  • If the data is empty when you use to_date(?,'yyyy/mm/dd') insert a file into db

    online form insert the? is user input, if the user entered the following works find, but if the input file is empty insert get an error, how to handle
    If the data is empty when you use to_date(?,'yyyy/mm/dd')
    Thank you

    Be more specific.

    You try to insert this in a column that is defined as not null?

    If so, you can choose a default value for the value that you want to use if the user leaves the field to the white screen.

    Or, better yet, use the validation of the front to prevent them from going into an empty space (or perhaps failed it there).

    However, if you still want to do it in the DB:

    Insert into table1 (non_null_date_col)
    values (to_date (nvl (?, '' 2199/12/31), "dd/mm/yyyy"));

Maybe you are looking for