Mosaic Georaster does not return the same values as sources

I have created a mosaic using the plsql block... and when you query the source and the mosaic I get different results...

Any suggestions...

Best regards

Tagle Hugo

-PLSQL

DECLARE

GR sdo_georaster;

BEGIN

INSERT INTO NED_MOSAIC (id, rast)

VALUES (1, sdo_geor.init ('NED_MOSAIC_RDT'))

RETURN rast IN gr.

sdo_geor. Mosaic ("ned", "rast", gr, 'block size = (1024, 1024)', sdo_number_array(-100));

UPDATE ned_mosaic SET rast = gr WHERE id = 1;

END;

/

-QUERIES

SELECT 'source' x, sdo_geor.getCellCoordinate (rast, 0, sdo_geometry (2001,4326, SDO_POINT (-80.290818, 25.753106, null), null, null)) cells.

SDO_GEOR.getCellValue (rast, 5, SDO_GEOMETRY (2001, 4326, SDO_POINT (-80.290818, 25.753106, NULL), NULL, NULL), 1) elevation

OF rm_ent.ned

---

WHERE ned_ref_id IN (SELECT ned_ref_id FROM rm_ent.ned_ref

WHERE sdo_relate (geom, SDO_GEOMETRY (2001, 4326, SDO_POINT (-80.290818, 25.753106, NULL), NULL, NULL), "mask = ANYINTERACT'") = "TRUE" ROWNUM AND < 2) AND ROWNUM < 2

;

SELECT 'mosaic' x, sdo_geor.getCellCoordinate (rast, 0, sdo_geometry (2001,4326, SDO_POINT (-80.290818, 25.753106, null), null, null)) cells.

SDO_GEOR.getCellValue (rast, 5, SDO_GEOMETRY (2001, 4326, SDO_POINT (-80.290818, 25.753106, NULL), NULL, NULL), 1) elevation

OF rm_ent.ned_mosaic;

-RESULTS

X CELLS RISE

------ ----------------------------------------------------- --------------

source MDSYS. SDO_NUMBER_ARRAY (2666,7659) 2.79998779

X CELLS RISE

------ --------------------------------------------------------------------

Mosiac MDSYS. SDO_NUMBER_ARRAY (35066,29259) 2.6000061

Hi Hugo, you check the values of the cells on level 5 of the pyramid. You can check the original cell values to see what is happening?

That is to say, change SDO_GEOR.getCellValue (rast, 5, SDO_GEOMETRY (...

to SDO_GEOR.getCellValue (rast, 0, SDO_GEOMETRY (...

Tags: Database

Similar Questions

  • inputText and ouputText does not display the same value

    Hello

    JDev 11.1.2.4

    On my page, I have an inputText and outputText bound to the same link of the attribute. The bind value is defined in a value change listener, and then the two components are updated. Say I put in 2009 for the PeriodFrom, the inputText remains empty, but the outputText shows the 2009. How is possible that the two items related to the same link does not show the same value.

    < af:inputText value = "#{bindings." PeriodFrom.inputValue}"required =" #{bindings. " PeriodFrom.hints.mandatory}.

    columns = "#{bindings." PeriodFrom.hints.displayWidth}"shortDesc =" #{bindings. " PeriodFrom.hints.tooltip}"id ="id1 ".

    autoSubmit = "true" simple = "true" >

    < f: validator binding = "#{bindings." PeriodFrom.validator} "/ >"

    < / af:inputText >

    < af:outputText value = "#{bindings." PeriodFrom.inputValue}"id ="ot3"clientComponent ="true"/ >

    Furthermore, I tried to get the RichInputText component and call a getValue on it, and the value returned is 2009. I'm completely lost.

    Thank you

    I made the fragment of page from scratch. I discovered why the update does not work. This is because the selectOneChoice is inside an af:subform. If I remove the subform, the update works correctly.

    shortDesc = "#{bindings." StdcntyCode.hints.tooltip}"id ="soc2"simple ="true"autoSubmit = 'true '.

    valueChangeListener = "#{pageFlowScope.identificationSessionEditBean.countryValueChangeListener}" > "

    columns = "#{bindings." PeriodFrom.hints.displayWidth}"shortDesc =" #{bindings. " PeriodFrom.hints.tooltip}"id ="id1 ".

    autoSubmit = "true" simple = "true" >

    columns = "#{bindings." PeriodTo.hints.displayWidth}"shortDesc =" #{bindings. " PeriodTo.hints.tooltip}"id ="id2 ".

    autoSubmit = "true" simple = "true" >

  • : Nom_element and V ('ITEM_NAME') do not return the same value

    Hi all

    I'm developing a shared application process that is called by an AJAX request.

    For the pl/sql code, stored procedure validation e development support I moved the logic inside a database.
    So I have this situation:

    Application process

    ...
    : MYITEM: = wwv_flow.g_x01; -received setting of ajax call I want to put
    ...
    MY_FUNCTION();

    MyFunc

    ...
    v('MYITEM') - here I use value MyItem
    ...

    The problem is that when I call v ('MYITEM') the value I get is the previous and not one that I put with: MYITEM: = wwv_flow.g_x01;
    I have the same problem if I set the V ('MYITEM') inside the apex application process.

    I saw that it worked right if I use the following to set the value of the element in the application process:

    APEX_UTIL. SET_SESSION_STATE('P0_LST_DATA',:P0_LST_DATA);

    Is this a bug?
    I was expecting to get the value of the item: MONELEMENT and v ('MYITEM') are equivalent...

    Thank you
    Davide

    Davide,

    If you encode the block like that, you should get the results you expect:

    : P100_VAR1: = '1'. : P100_VAR1;
    : P100_TEST: =: P100_VAR1;

    The reason why this block does not give you what you expect:

    : P100_VAR1: = '1'. : P100_VAR1;
    : P100_TEST: = v ('P100_VAR1');

    ... is that v ('P100_VAR1') returns the current value of the item in the table of PL/SQL State session as it existed before the execution of the block. The assignment to the variable binding: P100_VAR1 has registered only a value in storage variable to bind the dynamic execution at this time and has not yet spread to session state, which is located at the end of the execution of the block. It's a little weird, we know.

    Andy,

    I figured that the: xxxx points have been settled during the loading of the page with what the source is...

    They contain the session state value and can be read or written in notation variable bind.

    However, they are updated only in the session when you send page...

    They are updated in session state when the particular block is completed and a commit is issued at this time there.

    In order to update a piece of code PL/SQL session state, you must use... apex_util.set_session_state.

    You must be careful to call it when scoring also bind variable to set the session state may cause one to deny the other. Using one method or the other should work very well.

    Scott

  • Function does not return the correct value

    Hi, I'm having a strange problem and hope someone knows how to solve this problem...

    I try to send a string to a function in another class and do return to a textfield, so I can add it to a movieclip and on the stage. I use it for several buttons. The problem is when I put that a string in it value returns a string for the previous call to the function that is not the string value that I want to use. Here's the function:

    public void replaceMCTxt (mcString:String, xPos:Number,

    yPos:Number, rolloverText:Boolean, newFontSize:uint, height: uint, width: uint = false): {TextField

    var newMCTxt:TextField = new TextField();

    newMCTxt.x = xPos;

    newMCTxt.y = yPos;

    newMCTxt.width = width;

    newMCTxt.height = Height;

    var textFormat:TextFormat = new TextFormat();

    textFormat.align = _gameModel.screenFontAlign;

    textFormat.size = newFontSize;

    textFormat.font = _gameModel.screenFont;

    textFormat.color = _gameModel.screenFontColor;

    newMCTxt.defaultTextFormat = textFormat;

    newMCTxt.text = _languageClass.getTranslation (mcString);

    newMCTxt.selectable = false;

    Return newMCTxt;

    }

    I try to call with this statement in another class:

    _moreGamesTxtField = _updateLanguageClass.

    ("MORE GAMES", _gameModel.moreGamesTxtXPos, replaceMCTxt

    _gameModel.moreGamesTxtYPos, _gameModel.moreGamesTxtWidth,

    (_gameModel.moreGamesTxtHeight, _gameModel.moreGamesTxtFontSize);

    Instead of giving me a movieclip "MORE GAMES", it gives me a 'PLAY' movieclip, which is what the previous call to the function used. I also had a similar problem in another function where he did the same thing with filtering of different buttons, so I think the problem is in the service, but I'm not programmer to know that it's good enough. If anyone has an idea please let me know. Thank you...

    Start the survey using the trace() function to see what value is passed to and returned by some _languageClass.getTranslation ().

  • decrypt not returns the same value that encrypt

    Hi all
    Please help if you have encountered this problem before or have any brilliant suggestion to my question below.

    I try to encrypt the value "4120166668", insert in the database, and then decipher that it appears on the system. It seems that the value "4120166669" appears. Build an example of code that is not complete database, and it still does not work.

    But if I exert the ToBase64() function then encrypt, as well as decrypt and then run tostring (tobinary ()), it works. The thing is, if I change that, the rest of encryption is stored in the database will have error when the display on the system because it uses the same encrypt and decrypt the value.

    How should I go about this? Does anyone have suggestions or other ways? And I really want to know what causes this problem to occur.

    See you soon,.
    Jamie

    delete the part of the encrypted value (chr 10/newline at the end of the value). Delete this Trim() and you can convert without problem.

    CR

  • HypGetMemberInformation in VBA. Does not return the property values.

    I tried to use HypGetMemberInformation in VBA to find the level of a member of the grid.

    I continued to get zeros even for members who are not level 0 ones.

    I went to test HypGetMemberInformation a test connected grid that has members in the first column (column A).

    I packed a test routine I ran after you connect the grid manually:

    Void TestMemberLevelFind()

    Dim line As Integer

    Dim MemberProperties Collection As

    Dim vtMemberName As String

    ' Dim vtPropertyName As String

    Dim vtPropertyValue As Long

    Dim vtPropertyValueString As String

    Dim ErrorCode as long

    Dim ErrorMessage As String

    Define MemberProperties = new Collection

    MemberProperties.Add HYP_MI_NAME

    MemberProperties.Add HYP_MI_DIM

    MemberProperties.Add HYP_MI_LEVEL

    MemberProperties.Add HYP_MI_GENERATION

    MemberProperties.Add HYP_MI_PARENT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CHILD_MEMBER_NAME

    MemberProperties.Add HYP_MI_PREVIOUS_MEMBER_NAME

    MemberProperties.Add HYP_MI_NEXT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CONSOLIDATION

    MemberProperties.Add HYP_MI_IS_TWO_PASS_CAL_MEMBER

    MemberProperties.Add HYP_MI_IS_EXPENSE_MEMBER

    MemberProperties.Add HYP_MI_CURRENCY_CONVERSION_TYPE

    MemberProperties.Add HYP_MI_CURRENCY_CATEGORY

    MemberProperties.Add HYP_MI_TIME_BALANCE_OPTION

    MemberProperties.Add HYP_MI_TIME_BALANCE_SKIP_OPTION

    MemberProperties.Add HYP_MI_SHARE_OPTION

    MemberProperties.Add HYP_MI_STORAGE_CATEGORY

    MemberProperties.Add HYP_MI_CHILD_COUNT

    MemberProperties.Add HYP_MI_ATTRIBUTED

    MemberProperties.Add HYP_MI_RELATIONAL_DESCENDANT_PRESENT

    MemberProperties.Add HYP_MI_RELATIONAL_PARTITION_ENABLED

    MemberProperties.Add HYP_MI_DEFAULT_ALIAS

    MemberProperties.Add HYP_MI_HIERARCHY_TYPE

    MemberProperties.Add HYP_MI_DIM_SOLVE_ORDER

    MemberProperties.Add HYP_MI_IS_DUPLICATE_NAME

    MemberProperties.Add HYP_MI_UNIQUE_NAME

    MemberProperties.Add HYP_MI_ORIGINAL_MEMBER

    MemberProperties.Add HYP_MI_IS_FLOW_TYPE

    MemberProperties.Add HYP_MI_AGGREGATE_LEVEL

    MemberProperties.Add HYP_MI_FORMAT_STRING

    MemberProperties.Add HYP_MI_ATTRIBUTE_DIMENSIONS

    MemberProperties.Add HYP_MI_ATTRIBUTE_MEMBERS

    MemberProperties.Add HYP_MI_ATTRIBUTE_TYPES

    MemberProperties.Add HYP_MI_ALIAS_NAMES

    MemberProperties.Add HYP_MI_ALIAS_TABLES

    MemberProperties.Add HYP_MI_FORMULA

    MemberProperties.Add HYP_MI_COMMENT

    MemberProperties.Add HYP_MI_LAST_FORMULA

    MemberProperties.Add HYP_MI_UDAS

    ' For line 8 to 83 =

    For row = 8-10

    vtMemberName = ThisWorkbook.ActiveSheet.Cells (rank 1). Value

    For each vtPropertyName in MemberProperties

    Code of error = HypGetMemberInformation(ThisWorkbook.ActiveSheet.Name, vtMemberName, vtPropertyName, vtPropertyValue, vtPropertyValueString)

    If ErrorCode = 0 Then

    MsgBox _

    "The worksheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property value:" & vtPropertyValue & Chr (13) & _ "."

    "The property string:" & vtPropertyValueString ".

    On the other

    ErrorMessage = GetReturnCodeMessage (ErrorCode)

    MsgBox "SmartView API function HypGetMemberInformation returned an error message:" & Chr (13) & ErrorMessage, vbOKOnly, PrivateConnectionDescription

    End If

    Next

    On the next row

    End Sub

    The routine produces no result expected.

    Only of zeros.

    For all properties and all members.

    There must be something fundamentally wrong with my code.

    The function arguments are correct with regard to the name of journal, the member name and property name.

    Value of the property is always 0 and the property value string is always empty.

    Two property value arguments are expected to be passed by reference, so I should get some useful information.

    No error is generated so that the return error code is always 0.

    I guess that some prerequisite so that this function is not satisfied, but what is?

    Concerning

    Problem solved.

    The cause of all evil, as ususal, type mismatch...

    Arguments by reference:

    vtPropertyValue, vtPropertyValueString

    must be declared as variants but returned it to the values are ARRAYS...

    After the function call, to loop through these berries extract the real info returned!

    In the case of unique value of parameters such as the level of Member just use index 0, for example:

    vtPropertyValue (0)

    The corrected code is less with parts modified trhe parked in Green:

    Void TestMemberLevelFind()

    Dim line As Integer

    Dim index As Integer

    Dim MemberProperties Collection As

    Dim vtMemberName As String

    Dim vtPropertyName As Variant

    Dim vtPropertyValue As Variant

    Dim vtPropertyValueString As Variant

    Dim ErrorCode as long

    Dim ErrorMessage As String

    Define MemberProperties = new Collection

    MemberProperties.Add HYP_MI_NAME

    MemberProperties.Add HYP_MI_DIM

    MemberProperties.Add HYP_MI_LEVEL

    MemberProperties.Add HYP_MI_GENERATION

    MemberProperties.Add HYP_MI_PARENT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CHILD_MEMBER_NAME

    MemberProperties.Add HYP_MI_PREVIOUS_MEMBER_NAME

    MemberProperties.Add HYP_MI_NEXT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CONSOLIDATION

    MemberProperties.Add HYP_MI_IS_TWO_PASS_CAL_MEMBER

    MemberProperties.Add HYP_MI_IS_EXPENSE_MEMBER

    MemberProperties.Add HYP_MI_CURRENCY_CONVERSION_TYPE

    MemberProperties.Add HYP_MI_CURRENCY_CATEGORY

    MemberProperties.Add HYP_MI_TIME_BALANCE_OPTION

    MemberProperties.Add HYP_MI_TIME_BALANCE_SKIP_OPTION

    MemberProperties.Add HYP_MI_SHARE_OPTION

    MemberProperties.Add HYP_MI_STORAGE_CATEGORY

    MemberProperties.Add HYP_MI_CHILD_COUNT

    MemberProperties.Add HYP_MI_ATTRIBUTED

    MemberProperties.Add HYP_MI_RELATIONAL_DESCENDANT_PRESENT

    MemberProperties.Add HYP_MI_RELATIONAL_PARTITION_ENABLED

    MemberProperties.Add HYP_MI_DEFAULT_ALIAS

    MemberProperties.Add HYP_MI_HIERARCHY_TYPE

    MemberProperties.Add HYP_MI_DIM_SOLVE_ORDER

    MemberProperties.Add HYP_MI_IS_DUPLICATE_NAME

    MemberProperties.Add HYP_MI_UNIQUE_NAME

    MemberProperties.Add HYP_MI_ORIGINAL_MEMBER

    MemberProperties.Add HYP_MI_IS_FLOW_TYPE

    MemberProperties.Add HYP_MI_AGGREGATE_LEVEL

    MemberProperties.Add HYP_MI_FORMAT_STRING

    MemberProperties.Add HYP_MI_ATTRIBUTE_DIMENSIONS

    MemberProperties.Add HYP_MI_ATTRIBUTE_MEMBERS

    MemberProperties.Add HYP_MI_ATTRIBUTE_TYPES

    MemberProperties.Add HYP_MI_ALIAS_NAMES

    MemberProperties.Add HYP_MI_ALIAS_TABLES

    MemberProperties.Add HYP_MI_FORMULA

    MemberProperties.Add HYP_MI_COMMENT

    MemberProperties.Add HYP_MI_LAST_FORMULA

    MemberProperties.Add HYP_MI_UDAS

    ' For line 8 to 83 =

    For row = 8-10

    vtMemberName = ThisWorkbook.ActiveSheet.Cells (rank 1). Value

    For each vtPropertyName in MemberProperties

    Code of error = HypGetMemberInformation (ThisWorkbook.ActiveSheet.Name, vtMemberName, vtPropertyName, vtPropertyValue, vtPropertyValueString)

    If ErrorCode = 0 Then

    If IsArray (vtPropertyValue) then

    For index = LBound (vtPropertyValue) to UBound (vtPropertyValue)

    MsgBox _

    "The sheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property" & index & "value table:" & vtPropertyValue (index) & Chr (13) & _

    "Property" & index & "string array:" & vtPropertyValueString (index)

    Next

    On the other

    MsgBox _

    "The sheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property value:" & vtPropertyValue & Chr (13) & _ "

    "The property string:"& vtPropertyValueString"

    End If

    On the other

    ErrorMessage = GetReturnCodeMessage (ErrorCode)

    MsgBox "SmartView API function HypGetMemberInformation returned an error message:" & Chr (13) & ErrorMessage, vbOKOnly, PrivateConnectionDescription

    End If

    Next

    On the next row

    End Sub

    Fortunately we can someone find this useful.

    I wish documentation Oracle was a little clearer with more extensive code examples.

    Gustaw

  • function in pipeline does not return the first values of immediately?

    I'm new to features in the pipeline. I want to get the first results of this function in the pipeline as soon as possible. But in my test case, I get all the lines at the end, when the function ends.

    create or replace
    dummy function
    return DBMS_DEBUG_VC2COLL
    PIPELINED - NOTE the keyword in pipeline
    is
    Start
    line of conduct (to_char (sysdate, ' DD-MON-YYYY HH24:MI:SS'));))
    DBMS_LOCK. Sleep (90);
    line of conduct (to_char (sysdate, ' DD-MON-YYYY HH24:MI:SS'));))
    return;
    end;
    +/+

    I expect
    + January 20, 2009 08:32:51 + immediately
    a 90-second delay
    + 08:34:21 + 20 January 2009 thereafter.

    But I have two lines after 90 sec.

    Can I change the behavior of this function somehow, or is this the only default behavior and I have to find other solutions?

    Thanks in advance
    Martin

    A parameter in your SQL * Plus has an influence on behavior, specifically the ArraySize.

    by your function (pipe_nums), run this:

    select * from table(pipe_nums);
    
    set arrays 5
    
    select * from table(pipe_nums);
    

    and notice the difference

  • PC Windows 7 does not return the document or the printed page

    I had a setting for this in XP control but can't find the page, that I got it.

    This occurs in AN application, or a browser.  I print from a workbook Excel specific, for example, when I have a number of them opens.  The system does not return the workbook that I printed.  It's maddening and causes all sorts of questions.  Searching the Web for this instant product nothing and I know I can't be the only person who saw this.

    It is a platform of Windows 7 in a commercial network environment.  I use the snap Menu Addintools classic because I can't stand the Ribbon and never loved.  In Windows 7, I run a couple of other supplements that restore the XP the taskbar properly use, so you can work efficiently.

    None of the supplements are causing this problem because I was running the same classic Menu Add-in in the XP box and he had the same problem until I found workaround that I don't remember now.

    Everyone knows about this problem?

    Jeff Lynch

    Hello Jeff,.

    Please contact the Microsoft community.

    As the Windows 7 computer is under the corporate network environment, the issue that you are facing is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forum.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro&filter=AllTypes&sort=lastpostdesc

    Hope the information above has been a useful answer, Mercia back to us if you respect them more.

  • a pc that is sharing the printer and another pc does not accept the same network printer on xp pro sp3

    a pc that is sharing the printer and another pc does not accept the same network printer on xp pro sp3
    What is the solution?

    Check out these links

    http://TechNet.Microsoft.com/en-us/library/bb457001.aspx

    http://UIs.Georgetown.edu/software/documentation/WinXP/WinXP.network.printer.html

  • Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value.

    Prob Winmail.

    Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value. Do you want to continue? ». This started happening after that my laptop has been reformatted. I have synced with Gmail winmail and followed the instructions to do this correctly. By pressing the tab 'Yes' allows me to use winmail, but it's a little embarrassing.

    Using a digital signature?  Check the settings under Tools | Options | Security and also tools | Accounts | Mail | Properties | Security.

    Also, see here (http://mail.google.com/support/bin/answer.py?hl=en&answer=86382) and make sure that your settings are correct.

    Steve

  • Virtual Storage Manager - startTime does not meet the minimum value of 0 error

    Hello

    Someone at - it a fix for the problem in the region related to programming?

    When you attempt to add or change a schedule, we get the following error.

    Title: Too small
    Text: startTime does not meet the minimum value of 0

    What another user has said there US no customer impact and workaround has been to change the region of the computer you were using. I tried this and it doesn't work.

    This error is now a few years old.

    For anyone having this problem, add a parameter string regional en_US to the URL.

    For example .../vsphere-client/?locale=en_us

    Schedules can now be modified properly.

    Here's hoping for a permanent solution in the next major release.

  • Change event - why is does not select the current value, just the previous value?

    Hello.

    I use the script when the user selects a value from the drop box, something visible text (using the ' presence')

    I use the change of the event, but it does not work very well. When I select a value, it does not change the text, but if I select another value, it will display the previous selected value.

    Why did he not synchronize the value?

    Thank you!!

    Hi Rafael,.

    I don't know if you are using an event well.

    mouseExit is something good to use (especially when paired with the mouseEnter), during the change of the visual appearance of an object. For example, a button where the legend is underlined on mouseEnter and not highlighted on mouseExit.

    If you want to change the presence of objects on the form that the flat user above the list drop-down, then mouseEnter/mouseExit should work. However, if you want the changes occur once the user selects an item in the drop-down list, I recommend the exit event.

    Here are some examples:

    https://Acrobat.com/#d=txGF4IAoqmfTKPrLkwybIA

    https://Acrobat.com/#d=OzNofi-xFxmpXD1MrVU6rA

    https://Acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A

    Hope these helps,

    Niall

    Ensure the dynamics

  • Case in SQL condition does not return the values as expected

    Hello gurus of PL/SQL,.

    SELECT amd.brkr_nm, amd.brkr_sym, AMD.MINORITY_FLG, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
    WHEN atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY - CASE THEN
    WHEN AMD BOX. MINORITY_FLG = 'Y' THEN
    CASE WHEN atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY THEN 'Done' ELSE 'InDirected.
    END
    ANOTHER "NA".
    END
    ELSE ' 0'
    END
    AS Direction_Method
    Of
    alloc_tran_det_fact atdf,
    ACCESS_METHOD_DIM AMD

    But it returns me the 0 value in the Direction_Method field. But when I checked the values in DB then my first condition (atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY)
    second condition (AMD. MINORITY_FLG = 'Y') and third (atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY) condition of all them have passed, then it should show the value as indicated, but it is shwoing the '0' value only in the Direction_Method column.

    Kindly help me.. .am I missing something?
    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production. I can't create the test data in the database, I did not have the required privileges to make :(

    Kindly help me, thnanks in advance for your time and your comments

    Published by: user555994 on May 24, 2012 02:00

    could be a space or case (upper or lower case). Try:

    /* Formatted on 2012/05/24 16:00 (Formatter Plus v4.8.8) */
    SELECT amd.brkr_nm, amd.brkr_sym, amd.minority_flg, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
           CASE
             WHEN trim(upper(atdf.comm_brkr_dim_key)) = trim(upper(amd.access_method_dim_key))
               THEN CASE
                     WHEN trim(upper(amd.minority_flg)) = 'Y'
                       THEN CASE
                             WHEN trim(upper(atdf.exec_brkr_dim_key)) = trim(upper(atdf.comm_brkr_dim_key))
                               THEN 'Directed'
                             ELSE 'InDirected'
                           END
                     ELSE 'NA'
                   END
             ELSE '0'
           END AS direction_method
      FROM alloc_tran_det_fact atdf, access_method_dim amd
    
  • SQL-MIN() don't not returns the minimum value

    This is my code;

    $SQLx = "SELECT MIN (price_from) AS minimumprice FROM AN_pricetable WHERE accomm_id =". "." $db_field ["accomm_id"];

    $resultx = mysql_query ($SQLx);

    $pricefrom = mysql_result ($resultx, $i, 'minimumprice');

    If ($pricefrom == 0) {}

    $pricefrom = 'TBC' ;}

    But for some reason, it is not the minimum value "price_from". For example, several rows in the table have the same "accomm_id", and their values in the field 'price_from' are: 8, 12, 50-7, but the SQL code returns the MIN 12. What I'm doing wrong here?

    Thank you

    What is the data type of price_from?  If it is a type of string (char), then 12 would be the lowest value.

  • % ROWCOUNT SQL does not return the expected result

    I have the following function within a package:

    --Update APPERY_JTI_deleted_USERS table:
    FUNCTION fn_updt_app_jti_dlt_usr(
        p_update_co      IN VARCHAR2,
        p_appery_user_id IN APPERY_JTI_deleted_USERS.appery_user_id%TYPE,
        p_outlet_code    IN APPERY_JTI_deleted_USERS.outlet_code%TYPE)
      RETURN NUMBER
    AS
    lv_sql       VARCHAR2(4000);
    lv_rowcount  NUMBER := 0;
    BEGIN
    
    lv_sql := 'UPDATE APPERY_JTI_deleted_USERS SET '||p_update_co||' = 1 WHERE '||p_update_co||' = 0 AND OUTLET_CODE = '''||p_outlet_code||''' AND APPERY_USER_ID = '''||p_appery_user_id||'''';
    
    --EXECUTE IMMEDIATE lv_sql;
    EXECUTE IMMEDIATE 'BEGIN ' || lv_sql || '; :z := sql%rowcount; END; ' USING OUT lv_rowcount ;
    
    RETURN lv_rowcount;
      
    EXCEPTION
    WHEN OTHERS THEN
      RETURN -1;  
    END fn_updt_app_jti_dlt_usr;
    
    

    The function called several times as part of a job. Basically, the main function (Say M), call a few functions (for example A1... A9). Each of these functions is to do something and updated the application using the above function. Therefore, each of the nine functions will call the above function with different parameters.

    The problem that I am facing is:

    First run, invoke only first of all for the above function will return the positive result ($sql rowcount > 0). When I run M the second time, only first and second calls for the above function will be to return positive results and so on.

    How odd, it's that if I change the values again and run a function M, it will start from the beginning. And what strange more, the dynamic update statement is executed correctly and data are updated successfully. It's just sql rowcount % do not return is not the expected results.

    I tried to run execute immediately without (begin, end). I also tried to run it without HELP ON. It's always the same. I'm really confused, what Miss me here.

    I don't know if this is relevant. But for what it's worth, invoking the function above updates the SAME lines in the table appery_jti_deleted_users that the columns are different. So for all the work, the same lines need to be updated. Each function (A1... A9) will call the above function to update a different column of these lines.

    If you REALLY want to help you having US SHOW, not tell us:

    1. WHAT you do

    2. HOW to

    3. WHAT results you get

    4. WHAT results you expect to get

    First run, invoke only first of all for the above function will return the positive result ($sql rowcount > 0). When I run M the second time, only first and second calls for the above function will be to return positive results and so on.

    How odd, it's that if I change the values again and run a function M, it will start from the beginning. And what strange more, the dynamic update statement is executed correctly and data are updated successfully. It's just sql rowcount % do not return is not the expected results.

    Perhaps that the foregoing is true and maybe he's not. We have NO WAY of knowing because you don't SHOW US anything.

    I tried to run execute immediately without (begin, end). I also tried to run it without HELP ON. It's always the same.

    Yet once you showed us NOTHING >

    You do NOT FOLLOW best practices when you use dynamic sql statements: the sql statement real so that you can print:

    1 SEE what's running - make sure there are no syntax errors, and it seems to be what you wanted

    2 EXECUTE/TEST manually - to see if he really runs without error and see what results it really give.

    3. FIX any syntax or other problems and retest it

    Instrument properly your code and you won't have the problems you are having.

    You should know by now what are the parameters are transmitted when you run the function. So, there are at least three sets of these parameters.

    So you should be able to:

    1 run the instrumented manually function three times

    2. see that all three SQL statements are

    3 manually run these instructions

    4. see that the number of lines is after each execution

    We have no idea of what the output of the function is every time you call it. Apparently, you have, if you save the results of the function somewhere, but you didn't post any of this info.

    We need real details to help you - just listen to your story is not enough.

Maybe you are looking for

  • Comparison of two number

    1. I have ot make a VI for verification nuumber two if equal, greater or lesser.2 attached is VI.3. If the numbers are equal then print zero, if one is greater than 1, if its less print 2.4. I do not understand how to do it. When I put the output of

  • How to make a page my home page?

    I opened a new tab and that the tab is what I want to do my homepage, but I don't know how... Please help me someone...

  • Update problem blackBerry link Z10 software

    I currently have the 1.0.0.76 link and it says that there is an update available. I am running Win 7 64 bit I select install halfway through the installation, I get the following error, and the upgrade is supported. Any suggestions? Error 1723. There

  • 2410. WE light blinks and the hourglass stays on. He's stuck in this mode.

    Can anyone help with this? I did turn it off the wall and printer.  No change.  I know there's a way to make it out of this mode, but unable to remember the process. Thanks, Sharon

  • Get my serial number lost

    About 3 years ago I bought Adobe Photoshop, Indesign, Bridge and Illustrator off Amazon in a area pre-packaged.I downloaded it on my mac and I've used it so far.I just got a new computer and need to transfer this course.I lost the box, card and every