Query result area on the first row instead of last row

Hi BI experts,
I want to display the result of  the BI query at the first row instead of last row.Could somebody help me how to accomplish this.
I tried with the layout->move result area but could not be possible.
I need your kind suggetion.
Thanks.

hi jyuoti,
Further, open your query in query designer, look at the query property,  under the tab "rows/columns"
change the result position of rows to "Below", you can see the preview there itself.
This should solve your problem.
Best Regards,
*Assign points if you find the answer useful.

Similar Messages

  • When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, and the safe search button is inoperable. Suggestions?

    When using private browsing to view image results in Safari 5.1.3, only the first two rows of results are visible, the following four or so rows display greyed out place holders, the remainder of the results page is blank, and the safe search button is inoperable. When I turn off private browsing and refresh the page, everything works again.
    Anyone else having this problem?

    I have got the same behaviour after the last Safari Update to 5.1.3. It seems that Safari now handles some scripts in a new way. If you debug the Google Website, you will see, that there is some Javascript Error, that seems to prevent to write into local cache. After some searching I wasn't able to finde a solution for this problem, other then disabling Javascript while private browsing to prevent the script loading. You then are able to use Google with the old layout. The option to disable JavaScript can be found in the Menu "Developer", wich has to be enabled in Safari in the options first.
    In my opinion this is a bug that is now occuring, because Apple changed something in private browsing and that has to be fixed by Google now, to run again. Or we will have to wait for 5.1.4, as you can read online Apple will change and bugfix the javascript engine in that version, perhaps this fixes the problem as well. I hope so!
    If anyone is in the developer program perhaps you could test this with the beta of 5.1.4 and tell us if it works.

  • Retrieving BEx Query Results Area for use in Excel formulas

    Hello,
    I run BEx queries in workbooks and then use Excel formulas ( mostly VLOOKUP(LookupValue, ResultsArea, ColumnReturned,) ) to retrieve certain information from the query ResultsArea.
    ****Problem:
    Depending on the query parameters, the query "Results Area" is larger or smaller.
    ****Non-optimal solution:
    One way to define the  ever changing Excel range occupied by the Results Area is to create an Excel name as:
    QueryRange = OFFSET(QueryFirstCell,,,COUNTA(OFFSET(Sheet1!$A:$A,,COLUMN(QueryFirstCell)-1,,)),COUNTA(OFFSET(Sheet1!$1:$1,ROW(QueryFirstCell)-1,,,)))
    Then, the only input required is the top-left cell of the Results Area, which stays the same (unless the query definition changes).
    ****Question
    What is the best way to refer to an ever-changing query Results Area in an Excel formula?
    Thank you!
    Louis

    It is actually much easier than that.
    Use a VBA statement like the following:
    Set RptRng = ActiveCell.CurrentRegion
    This will retrieve the data in the Results Area, no matter what the size is.
    Hope this helps...
    Bob

  • I recently transferred my ITunes library to an external hard drive.  I made sure to copy all the data from the saved location.  After the transfer I noticed that a lot of albums are missing the first song and some recently purchased albums are missing.

    I recently transferred my ITunes library to an external hard drive.  I made sure to copy all the data from the saved location.  After the transfer I noticed that a lot of albums are missing the first song and some recently purchased albums are missing.  Is there any way to recover the data?  Thanks for any help.

    I may have found an answer here:
    http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive
    They only thing I can assume is that my external hard drive was slow to start and iTunes defaulted to its old directory (see the last paragraph at the link above). However, once my external was recognized shouldn't everything have fixed itself?
    Message was edited by: williamson42
    Message was edited by: williamson42

  • Application messages are in the system log instead of the application log

    Hi SAP GURUS.
    The standard output is created from the outbound delivery .
    All the messages are hitting the system log instead of the application log .
    This is after the upgrade from 4.6c to ECC 6.0 .
    Please provide the details how to move the log to the application log since the output is the standard output (SAP provided output type ).

    verzunof wrote:
    Hello,
    My system.log is filled with these messages, they repeat every second.
    Jan 21 18:31:47 Maki-Mac kernel[0]: AppleFWOHCI_AsyncReceive::waitForDMA - context not going inactive.
    Jan 21 18:31:47 Maki-Mac kernel[0]: AppleFWOHCI_AsyncTransmit::waitForDMA - context not going inactive.
    Do these messages indicate a problem? If so what that could be problem and the solution?
    Can this contribute to the sleep/wakeup problem when iMac won't wakeup after being put to sleep manually and not sleeping according to Power Saving settings?
    Thanks a lot.
    verzunof wrote:
    I'm not certain if those messages indicate a power issue but you can try *resetting the System Management Controller* and see if that helps. Here's how: http://support.apple.com/kb/HT1806
    "The System Management Controller (SMC) is a chip on the logic board that controls all power functions for your computer. If your computer is experiencing any power issue, resetting the SMC may resolve it. The SMC controls several functions, including:
    Telling the computer when to turn on, turn off, sleep, wake, idle, and so forth.
    Handling system resets from various commands.
    Controlling the fans."
    Carolyn

  • How can i select the next column instead of next row when press enter key

    I need to know how can i select the next column instead of next row when i press the enter key.By default ,when i press enter key the next row is selected and the column remain unchanged but I wants opposite that is the row should remain unchanged but column index will changed.
    Thanks to all.

    Well, the right arrow key will already move you to the next column, so the easiest way to do this is to modify the InputMap to have the Enter key invoke the same Action as the right arrow key.
    You can search the forum for my "Table Actions" (without the space) example that will show you how to do this.

  • Is it true that apple approve that they are give the first 101,000 people to get a 5s or a 5c for free ?

    Is it true that apple approve that they are giving the first 101,000 people to get a 5s or 5c for free ?

    No, I meant ther source of the rumor, not how you read it. This should alert you not to believe everything you read from rumor sites. Believe even less if you are informed by third, fourth, fifth, etc. hand reports.

  • I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    Restart your Mac and immediately hold down the Shift key when you hear the startup chime to boot into Safe Mode. Keep holding the Shift key until you see a progress bar towards the bottom of the screen. You can let go of the Shift key at that point.
    OS X asks you to log in (you will get this screen on a Safe Mode boot even if your Mac is set to automatically log in). Let the Mac finish booting to the desktop and then restart normally. This will clear Font Book's database and the cache files of the user account you logged into in Safe Mode.
    Next, close all running applications. From an administrator account, open the Terminal app and enter the following command. You can also copy/paste it from here into the Terminal window:
    sudo atsutil databases -remove
    Terminal will then ask for your admin password. As you type, it will not show anything, so be sure to enter it correctly.
    This removes all font cache files. Both for the system and the current user font cache files. After running the command, close Terminal and immediately restart your Mac.

  • Why are on the first web page buttons are shaped and following pages don´t? All Pages are based on the same Masterpage.

    Hello,
    I´ve a Problem with Muse.
    Why are on the first web page buttons are shaped and following pages don´t? All Pages are based on the same Masterpage.
    Any ideas?
    Stefan

    I just republished the site, and it looks fine, energievollfit | über
    could you please try to republish the site again, and let me know .

  • Producedure givng two rows instead of one row

    Hi
    Please find below my procedure..when I execute this proc...displays two rows instead of one row. Please help me incase if I did mistake.
    CREATE PROCEDURE SP_CWCTravel_Cruise_Amenities_S(
            @Cruise_Line_Code varchar(2500) = NULL,
            @Ship_Code varchar(2500) = NULL,
            @Sail_Id varchar(100) = NULL,
            @Base_Price decimal(8, 2),
            @Category_Groups varchar(2500) = NULL,
            @Categories varchar(2500) = NULL,
            @Rate_Codes varchar(2500) = NULL,
            @Booking_Date VARCHAR( 10 ),
            @Sail_Start_Date VARCHAR( 10 )
    AS
    BEGIN
        SELECT  TOP 1 *
        FROM CWCTravel_Cruise_Amenities_Definition as cad
                                    JOIN CWCTravel_Cruise_Amenities_Definition_Date_Range AS caddr
                                    ON cad.id = caddr.Amenities_Definition_Id
        WHERE Cruise_Line_Code in (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Cruise_Line_Code))
            AND (Min_Base_Price = 0 OR Min_Base_Price <= @Base_Price)
            AND (Max_Base_Price = 0 OR Max_Base_Price >= @Base_Price)
            AND (Ship_Code IS NULL OR Ship_Code = '' OR Ship_Code IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Ship_Code)))
            AND (Sail_Id IS NULL OR Sail_Id = '' OR Sail_Id IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Sail_Id))) 
            AND (Rate_Codes IS NULL OR Rate_Codes = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Rate_Codes)) A,
                                                                                       (SELECT REPLACE(REPLACE(Item,'?', '_'), '*', '%') Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Rate_Codes)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                                    AND (Category_Groups IS NULL OR Category_Groups = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Category_Groups)) A,
                                                                                       (SELECT  Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Category_Groups)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                    AND (Categories IS NULL OR Categories = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Categories)) A,
                                                                                       (SELECT  Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Categories)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                                    AND  (@Booking_Date is null or @Booking_Date=''
                                                                                                    OR (( caddr.from_date IS NULL OR caddr.from_date <= @Booking_Date ) AND ( caddr.to_date IS NULL OR caddr.to_date >= @Booking_Date )                                                                                   
                                                                                    AND  (( caddr.date_range_type IS NULL ) OR ( caddr.date_range_type = 'BOOK_DATE' ))) )
        union
        SELECT  TOP 1 *
        FROM CWCTravel_Cruise_Amenities_Definition as cad
                                    JOIN CWCTravel_Cruise_Amenities_Definition_Date_Range AS caddr
                                    ON cad.id = caddr.Amenities_Definition_Id
        WHERE Cruise_Line_Code in (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Cruise_Line_Code))
            AND (Min_Base_Price = 0 OR Min_Base_Price <= @Base_Price)
            AND (Max_Base_Price = 0 OR Max_Base_Price >= @Base_Price)
            AND (Ship_Code IS NULL OR Ship_Code = '' OR Ship_Code IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Ship_Code)))
            AND (Sail_Id IS NULL OR Sail_Id = '' OR Sail_Id IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Sail_Id))) 
            AND (Rate_Codes IS NULL OR Rate_Codes = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Rate_Codes)) A,
                                                                                       (SELECT REPLACE(REPLACE(Item,'?', '_'), '*', '%') Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Rate_Codes)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                                    AND (Category_Groups IS NULL OR Category_Groups = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Category_Groups)) A,
                                                                                       (SELECT  Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Category_Groups)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                    AND (Categories IS NULL OR Categories = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Categories)) A,
                                                                                       (SELECT  Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Categories)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
            AND  (@Sail_Start_Date is null or @Sail_Start_Date=''
                                                                                                    OR (( caddr.from_date IS NULL OR caddr.from_date <= @Sail_Start_Date ) AND ( caddr.to_date IS NULL OR caddr.to_date >= @Sail_Start_Date )                                                                                   
                                                                                    AND  (( caddr.date_range_type IS NULL ) OR ( caddr.date_range_type = 'TRAVEL_DATE' ))) )                                                                        
        ORDER BY Cruise_Line_Code DESC, Ship_Code DESC, Sail_Id DESC, Rate_Codes DESC, Category_Groups DESC, Categories DESC
    ENDWhile executing this SP
    I am getting the following results.
    2043 23-07-2010 AM 11:22:10 23-08-2011 PM 04:57:19 8 princess caribbeanPrincess 2043 20-08-2011 AM 12:00:00 30-11-2011 AM 12:00:00 BOOK_DATE
    2043 23-07-2010 AM 11:22:10 23-08-2011 PM 04:57:19 8 princess caribbeanPrincess 2043 01-10-2011 AM 12:00:00 30-11-2011 AM 12:00:00 TRAVEL_DATE
    I need only the first record.
    Thanks in adv
    Rekha

    871270 wrote:
    Hi
    Please find below my procedure..when I execute this proc...displays two rows instead of one row. Please help me incase if I did mistake.Seriously?
    You wrote a query against tables we've never seen, containing data we can't possibly have any idea about and you expect us to be able to help you?
    Please go discuss this with someone in your organization who understands the data model and have them explain to you how it is supposed to work.
    Put yourself in our situation (forum volunteers) ... if we threw some arbitrary code with no explanation as to what it does, what the data model looks like and what's supposed to be happening, do you think you'd be very successful ?

  • How to ensure that the query results are fetched from the BW acclerator.

    Hi Experts,
    Suppose if i want to execute the query with BIA option, I can achieve it in RSRT .
    1)But is there some query settings or properties where we can make sure that whenever a query(say Q1) is executed, always the data should be fetched from the BIA index.
    2)Suppose the BIA indexing has failed due  to some reasons, will the data be fetched from the previously updated BIA index??
    regards
    akshay

    Hi man,
    1)But is there some query settings or properties where we can make sure that whenever a query(say Q1) is executed, always the data should be fetched from the BIA index.
    If you have built up BIA index on a cube, then every query on the cube or MultiProvider will automatically use BIA index. No additional settings required. You can use the following way to test whether a query is using BIA or not:
    Go to RSRT, input query name, click 'execute and debug' and check 'Display Statistics Data' and 'Do Not Use Cache'. Execute. After the query result press F3, now you should be able to see statistics. There's a tab 'BIA Access'. If you see something there then it means BIA index is used.
    2)Suppose the BIA indexing has failed due to some reasons, will the data be fetched from the previously updated BIA index??
    If BIA rollup is failed, then the last request(s) would not available in reporting and query will use BIA index for earlier requests. You can consider it like aggregate. But if initial fill of BIA failed then you would not be able to use BIA index.
    Regards,
    Frank
    Edited by: Frank Lee on Jul 14, 2009 2:22 PM

  • How can I architect my data layer to yield query result pages to the application as SQL Server prepares them?

    I tried to make the question as explicit as possible.
    Refer to Sql Server Management Studio's Results view.  Depending upon the structure of the execution plan, the Results pane may begin displaying results while the query is still executing.  Can someone point me in a direction for architecting a
    data layer (I am tech and framework agnostic for this task. Any solution will suffice) that will begin receiving pages of the set before SQL Server has completed the entire query?
    The call from the data layer to SQL Server will obviously have to be asynchronous, but is there any additional ceremony that I need to be aware of when issuing OPTION (FAST x) to the query optimizer?

    Thanks for the reply. (I actually meant to put this in the SQL Data Access forum, not the T-SQL forum)
    "Generally the last step is ORDER BY in a
    query, so nothing can start before that executes."
    I would imagine you cannot ORDER BY and yield results as they are fetched because of the execution plan that would be generated.  For the purposes of this post, please assume that sorting will be done purely client side
    "Can you post your query?"
     For purposes of discussion, let's assume that the query is
    select *
    from information_schema.columns
    and also assume that you have "lots" of columns to display.
    This was an exploratory question to see what would be necessary to replicate the behavior of Management Studio's Query Result view in a custom application. 
    I would imagine that there's going to be a lot of analysis of the execution plans that get generated in order for the OPTION (FAST x) optimizer hint to do any good, but apart from general tuning concerns that would allow SQL SERVER to yield a page of data
    "fast", I was wondering if there was anything else required of the calling client to force it to yield return its first page.
    After thinking about this (and phrasing it the way I did in the last sentence) perhaps this is the incorrect forum for this question.  I imagine that my concerns are better addressed in forums dedicated to the technology of the calling client (which
    would be a .NET assembly)
    Be that as it may, if there is any ceremony that SQL Server imposes on clients in order to yield return, I would expect that my question would be in the scope of SQL Server discussions (even though I intended this to be in a different SQL Server forum)

  • Query only works on the first word of the managed property

    I have several managed properties that are not returning query results as expected, they are returning results only if the term queried matches
    the first word in the property, any other query returns no results.
    Scenario:
    filename = "Sample Excel File.xlsx" (OOTB property)
    FooOwner = "Martin Zima"
    FooSiteName = "Test Site"
    If I query filename:Sample, filename:File, filename:Excel (or any combination) they all works as expected. However, if I query "FooOwner:Martin"
    it works, but if I query FooOwner:Martin Zima it fails, and FooOwner:Zima also fails. Similarly, if I search for FooSiteName:Site it fails (only CPSiteName:Test works). Everything seems ok in the crawled property and managed property. Can anyone please help?

    Hi Martin,
    I tried in my envrionment, author:"Rebecca Tu" and
    author:Rebecca Tu returned the same result. Please try author:* and see if it will return all the results. If there is no result, then we should check the DisplayAuthor property in Search schema.
    In the default search result page, there should be Author refiner in the Refinement. You could use the default one as below:
    Regards,
    Rebecca Tu
    TechNet Community Support

  • 3 cfgrids on one page.  Columns from grid 1,2 and 3 are swapping the first select box from each grid.

    ColdFusion 11, hot fix 3 installed but did not help. There are no binds.
    This one has been driving me crazy and I have finally figured out that it is the first column in each grid where there is a select box via "valuesdisplay" that is the issue. Select box results are switching grids!
    Example of how it is coded to display:
    Grid 1 - gridcolumn should have a dropdown with 1,2,3
    Grid 2 - gridcolumn should have a dropdown with a,b,c
    Grid 3 - gridcolumn should have a dropdown with x,y,z
    However, the results in the dropdowns in the grids are:
    Grid 1 - x,y,z (should be 1,2,3)
    Grid 2 - 1,2,3 (should be a,b,c)
    Grid 3 - a,b,c (should be x,y,z)
    This only happens with the first dropdown for each grid. Any other columns with dropdowns do not have any issues and do not swap out to the wrong grid.
    Sample of my code from the grids:
    Grid 1:
    <cfgrid name = "evalgrid"
      height="200"
      autowidth="no"
      font="arial" fontsize="12"
      query = "getevalfinal"
      SORT="Yes"
      selectmode="edit"
      format="html"
      insert="yes"
      delete = "#deletevalue#">
      <CFGRIDCOLUMN NAME="numberofschools" HEADER="numberofschools"
      HEADERALIGN="LEFT" DATAALIGN="LEFT"
      BOLD="Yes" ITALIC="No"
      SELECT="Yes" DISPLAY="Yes"
      HEADERBOLD="Yes" HEADERITALIC="No"
      VALUES = " ,NA,1,2,D"
      VALUESdisplay = "Blank,NA,1,2,D" valuesDelimiter=","
      width=50>
    </cfgrid>
    Second Grid:'
    <cfgrid name = "SecondGrid"
      height="100" width="700"
      font="arial" fontsize="12"
      query = "getsecurity"
      SORT="Yes"
      selectmode="edit"
      format="html"
      insert="yes"
      delete = "#deletevalue#"
      autowidth="yes"
      >
      <CFGRIDCOLUMN NAME="userrole" HEADER="userrole"
      HEADERALIGN="LEFT" DATAALIGN="LEFT"
      BOLD="Yes" ITALIC="No"
      SELECT="Yes" DISPLAY="Yes"
      HEADERBOLD="YES" HEADERITALIC="No"
      VALUES = "#olduserrole#"
      VALUESdisplay = "#olduserrole#" valuesDelimiter=","
      WIDTH=300
      font="arial" fontsize="12">
    </cfgrid>
    In the above code, userrole values end up being in the wrong grid where numberofschools values should be and vice versa.
    Appreciate any help!
    B.

    You may find this article useful: [http://balusc.blogspot.com/2007/10/populate-child-menus.html].

  • Straight SQL query results are considerably faster than a FUNCTION...

    Hey all,
    First time new poster, long time reader.
    I have a function that calls a specific query with 2 variables. When I execute the query and hardcode the values, it executes <strong>much </strong>quicker than when the function is called, and the values are passed. I'll give some examples below... here's the full function:
    FUNCTION get_golf_gameplay_completed (
    p_cabinet_id_in NUMBER,
    p_days_back_in NUMBER
    RETURN ref_cursor
    IS
    cu_ref_cur ref_cursor;
    BEGIN
    OPEN cu_ref_cur FOR
    SELECT golf_game_data.cabinet_id, golf_game_data.player_num,
    TO_CHAR
    (global_utility_pkg.cnvrt_gmt_to_local_time_by_cab
    (golf_game_data.cabinet_id,
    golf_game_data.server_start_time,
    golf_game_data.server_start_time
    'MM/DD/YYYY HH:MI:SS AM'
    ) cab_local_event_timestamp,
    TO_CHAR
    (global_utility_pkg.cnvrt_gmt_to_local_time_by_cab
    (golf_game_data.cabinet_id,
    golf_game_data_end_time.server_end_time,
    golf_game_data_end_time.server_end_time
    'MM/DD/YYYY HH:MI:SS AM'
    ) cab_local_session_end,
    TO_CHAR
    (global_utility_pkg.cnvrt_gmt_to_local_time_by_cab
    (golf_game_data.cabinet_id,
    golf_game_data_end_time.server_end_time,
    golf_game_data_end_time.server_end_time
    'HH:MI:SS AM'
    ) cab_local_session_end_time,
    TO_CHAR
    (global_utility_pkg.cnvrt_gmt_to_local_time_by_cab
    (golf_game_data.cabinet_id,
    golf_game_data_end_time.server_end_time,
    golf_game_data_end_time.server_end_time
    'MM/DD/YYYY'
    ) cab_local_server_end_date
    FROM golf_game_data INNER JOIN golf_game_data_end_time
    ON golf_game_data.cabinet_id =
    golf_game_data_end_time.cabinet_id
    AND golf_game_data.player_num =
    golf_game_data_end_time.player_num
    AND golf_game_data.session_id =
    golf_game_data_end_time.session_id
    WHERE golf_game_data.cabinet_id = {color:#ff0000}<strong>p_cabinet_id_in</strong>{color}
    AND golf_game_data_end_time.cabinet_id = {color:#ff0000}<strong>p_cabinet_id_in</strong>{color}
    AND golf_game_data_end_time.server_end_time IS NOT NULL
    AND golf_game_data.server_start_time &gt;= SYSDATE - {color:#ff0000}<strong>p_days_back_in</strong>{color}
    ORDER BY golf_game_data_end_time.server_end_time;
    RETURN cu_ref_cur;
    END get_golf_gameplay_completed;
    I've highlighted the variables for readability.
    This is how I've been executing the function from the SQL*Plus command line:
    select tech_report_package.get_golf_gameplay_completed(122477,10) from dual;
    The speed differences between running the raw query versus the function as a whole have been driving me nuts. For the cabinet IDs (the first variable inserted - in the case above, it would be 122477) that have a high amount of activity on the GOLF_GAME_DATA table, the query itself returns results within a few seconds (usually under 10 seconds even for the most bloated data). However, the function, when called with the same IDs, takes minutes - as long as 3 or 4 minutes in some cases.
    I've run various tests in a cloned production environment, and we've isolated any possible issues with networking, data contention, and partitioning (the GOLF_GAME_DATA table is not partitioned) - the issue is simply the query speed versus function speed, with no external influences.
    What baffles me is the fact that the function is very basic - all it does it executes the query and returns the results, just like the query... the only difference being the cursor that's opened.
    So, getting back to square one; my question was: <u>why would any query run much quicker than a function that does nothing but call the same query?</u>
    Any thoughts?
    Thanks
    -Bob

    No change after using that parameter in the session.
    Any other ideas? I was playing with results with one of my coworkers and my manager, and we were unable to produce any results that were, well, reproducable. Even after <strong>shutting the database down</strong>, and starting it back up, it seems that the results from some of the example queries that we were running were being cached on the SAN which hosts the database's files, or cached and restored after the instance was started up.
    FYI - we test on an instance that mimics production. It's a clone that's produced once a day against the production database, and has no user contention. We bring it up, and are able to test things like we would in production with no other users on the instance at the same time. We are still seeing slow results.

Maybe you are looking for

  • Failed boot after enabling devmon service with systemctl

    I've recently reinstalled Arch and in trying to get a proper automount solution working I was playing with udevil and devmon. First I disabled and uninstalled ldm, which wasn't working as I wanted. Then installed udevil via pacman. I couldn't find pr

  • How to get 2011 PLANS in TEVEN?

    Hi I have this problem that i need to populate the position field in TEVEN table. Users can do that from SE30->2011 and edit the position there. but that doesn't refeclt the TEVEN position field even though there are two position field in there (i am

  • How do I reverse a photo so it's a mirror image

    I don't want to flip the image horizonally or vertically.  I want to reverse it, i.e., so a person facing left will face right.  Can I do this in iPhoto?  Some other app?

  • Iphone6 red blue  screen very serious!!!!

    My iphone6.10 month bought in Hong Kong. Then found that in use process will blue screen. The red screen. On December 28. Apple store for repair to the Hong Kong Kowloon tong. Said. Don't make an appointment. Can't repair, and then make an appointmen

  • Windows XP LabVIEW 8.6.1 Installation Error

    Please help!!! I am trying to install LabView 8.6.1 into my PC and immediately got SDK Error 12. I downloaded the latest version of Windows Installer, restarted my PC and got rid of the error. However, after inserting the NI Device Drivers DVD, I got