IF STATEMENT update - help

Hello

I have the IF statement that I need clarification on as a work colleague and I disagree on logic. Statement is below and here's how I interpret it:

For all of the descendants of "EC1200" unless Member is a descendant of "CE40" or 'EC34' or 'EC46' or 'CE36', "EC31" AND if the Member IS "EC31" then do this calc:

"Current staff"="MappingScen"-> "current staff";
"Requisition numbers" ="MappingScen"-> "requisition numbers."

I think it does the calc on two IF statements, because they are separated.

DIFFICULTY ('Jan': 'Dec', & CurrScen, @UDA ('employee', 'Level013'), @RELATIVE("Level4",0), @RELATIVE("Level5",0), CurrYr, NextYr & NextYr2)

('Work'
IF (@ISMBR (@DESCENDANTS ("EC1200")) AND NOT @ISMBR (@DESCENDANTS ("EC40"), @DESCENDANTS("EC34"), @DESCENDANTS("EC46"), @DESCENDANTS("EC36"), @DESCENDANTS ("EC31")))

IF (@ISMBR ("EC54140"))

"Current staff"="MappingScen"-> "current staff";
"Requisition numbers" ="MappingScen"-> "requisition numbers."
ENDIF
ENDIF)

ENDFIX

927ad62c-64b5-4483-B641-7add92792851 wrote:

Hello

I have the IF statement that I need clarification on as a work colleague and I disagree on logic. Statement is below and here's how I interpret it:

For all of the descendants of "EC1200" unless Member is a descendant of "CE40" or 'EC34' or 'EC46' or 'CE36', "EC31" AND if the Member IS "EC31" then do this calc:

"Current membership"= "MappingScen"->"current membership";
"Requisition numbers" ="MappingScen"-> "requisition numbers."

I think it does the calc on two IF statements, because they are separated.

DIFFICULTY ('Jan': 'Dec', & CurrScen, @UDA ('employee', 'Level013'), @RELATIVE("Level4",0), @RELATIVE("Level5",0), & CurrYr, & NextYr, & NextYr2)

('Work'
IF (@ISMBR (@DESCENDANTS ("EC1200")) AND NOT @ISMBR (@DESCENDANTS ("EC40"), @DESCENDANTS("EC34"), @DESCENDANTS("EC46"), @DESCENDANTS("EC36"), @DESCENDANTS ("EC31")))

IF (@ISMBR ("EC54140"))

"Current membership"= "MappingScen"->"current membership";
"Requisition numbers" ="MappingScen"-> "requisition numbers."
ENDIF
ENDIF)

ENDFIX

If I read this correctly the first so make sure it is a descendant of ec1200 but is not part of five descendants in the not so. Members. If it passes test it. Then checks to himself if he is a member ec54140 if it is then it does the calculations. This is because the if statements are nested in one another.

Tags: Business Intelligence

Similar Questions

  • A statement UPDATE changes the line if the update changes the column even value?

    HI -.

    I have a main classification and the corresponding audit table. I have a trigger. I created using the suggestion:http://www.runningoracle.com/product_info.php?products_id=211

    Now the problem that I am facing is that: if I run the same query (same value) update on the main table for n times (with the same data)... my audit table is updated with a new record every time. He is not able to determine that the value is the same.

    My goal is to load the audit table data if the value in a cell in the main table is really have changed.

    A statement UPDATE changes the line if the update changes the column even value?

    Best regards

    I have a main Table and the corresponding Audit Table. I have a trigger. I created using the suggestion:http://www.runningoracle.com/product_info.php?products_id=211

    Why?

    You try to resolve what made you what are the PROBLEM that select as the solution?

    Now the problem that I am facing is that: if I run the same query (same value) update on the main table for n times (with the same data)... my audit table is updated with a new record every time.

    Yes - it is EXACTLY what you say that you wanted to do and EXACTLY what the code does in this article.

    He is not able to determine that the value is the same.

    I think you mean that the code does NOT check if the value is the same. You can certainly change the code to do this check. But I have a question to start with your need for such a solution.

    My goal is to load the audit table data if the value in a cell in the main table is really have changed.

    OK - then modify the code to check EACH COLUMN and compare its NEW value to the OLD value and insert only the table of audit if SOME (or columns you care specifically) have changed.

    A statement UPDATE changes the line if the update changes the column even value?

    It depends on what you mean by 'change the line '. Of course to update a column with the SAME value does not change the resulting data value.

    But the physical structure of the line, the location of the pieces of line and information in the header block (YVERT, etc.) will change. And, as others have said Oracle doesn't know and doesn't care, so if the new value of a column is the same as the old value will create redo, undo and the rest.

    Start over and tell us what PROBLEM you're trying to solve. Then we can help you find the best way to solve it.

  • I have problem with value NULL when the use CASE statement please help this question

    I have problem with value NULL when the use CASE statement please help this question


    Table: digital_val

    SNO cl C2

    1 San1 11

    2 22 San2

    Actual result: expected to A         B

    A            B                                                                           11        22

    11 NULL

    22 NULL



    query:

    Select case when c1 = "san1" then c2,.

    case If c1 = "san2" then c2 B

    of digital_val

    I'm more curious why, when you select 2 rows, you expect a result of row?

    WITH digital_val

    AS (SELECT 1 AS 'Sno', 'San1"C1, c2 FROM DUAL 11)

    UNION ALL

    2 SELECT AS 'Sno', 'San2"C1, c2 FROM DUAL 22)

    SELECT CASE WHEN c1 is "San1" THEN END AS A c2.

    CASE WHEN c1 = "San2" THEN END AS B c2

    OF digital_val;

    With no other input, if you select 2 rows, you get 2 rows.  One of the other solutions use a max function, but is this really what you want, does not specify?

  • How to remove security as States update can not be removed

    KB956844-security update causes errors with software we use, in Add Remove programs this update States cannot be removed.

    How to reslove this problem?

    Help us help you: start by reading this post 'sticky '...

    What information to post in the Windows Update forum
    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/1467f44b-ee27-4F7D-98d7-f1c4b35b3395

    =========================================

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    NB: for Windows 2000 SP4 extended support ends on July 13, 2010.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • updates help to access internet

    I have recently accepted 13 updates for Vista. After installation I couldn't access the internet.  I was connected to the server with full access, but the Explorer would not be responsible.  A ran Diagnostics and it said that there was nothing wrong with my connection.  I played a little bit and had restore the system.  Returned Internet connectivity.  However, when I went to put the computer in 'State of low power' he wanted to reinstall updates.  I tried again and guess what?  No internet connection.  This series of updates is a disaster.  I hope that my other laptop at home will allow me to seek answers?  Please help me to find a solution and to register a formal complaint with Microsoft.

    Hi nfcapra,

    Thanks for the answers on the community forum.

    A number of KB is Knowledge Base # that was downloaded before this problem occurring.  The # is usually referenced by KB followed by six numbers.  An example is KB929777.

    You will be able to see this information that you follow the steps that Mick suggested above.

    Please let us know if it helped to solve the problem or if additional assistance is needed for the purpose this.

    Kind regards

    Debbie
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Stuck with - update-help needed

    Hello everyone and thanks for reading!

    I have the following problem with the update statement. Tables and data in them are as follows:


    Table 1: XML_TRANSFER
    create table XML_TRANSFER as
    select 111111 TAX_NR, 1 TYPE, 3000 PRIJ, 3000 POBOT from dual union all
    select 222222 TAX_NR, 1 TYPE, 720.7 PRIJ, 350.70 POBOT from dual union all
    select 333333 TAX_NR, 1 TYPE, 2600 PRIJ, 2100 POBOT from dual;
    Table 2: FIR_SET
    create table FIR_SET as
    select 2011 LET, 7 KROG, 111111 TAX_NR, 10 STEV_FAK, 2000 VALUE_ODPR, 0 VALUE_POBOT from dual union all
    select 2011 LET, 7 KROG, 111111 TAX_NR, 11 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT  from dual union all
    select 2011 LET, 7 KROG, 111111 TAX_NR, 12 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT  from dual union all
    select 2011 LET, 7 KROG, 111111 TAX_NR, 13 STEV_FAK, 200 VALUE_ODPR, 0 VALUE_POBOT  from dual union all
     
    select 2011 LET, 7 KROG, 222222 TAX_NR, 1 STEV_FAK, 200 VALUE_ODPR, 0 VALUE_POBOT  from dual union all
    select 2011 LET, 7 KROG, 222222 TAX_NR, 2 STEV_FAK, 20.7 VALUE_ODPR, 0 VALUE_POBOT  from dual union all
    select 2011 LET, 7 KROG, 222222 TAX_NR, 3 STEV_FAK, 100 VALUE_ODPR, 0 VALUE_POBOT  from dual union all
    select 2011 LET, 7 KROG, 222222 TAX_NR, 4 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT  from dual union all
     
    select 2011 LET, 7 KROG, 333333 TAX_NR, 81 STEV_FAK, 2600 VALUE_ODPR, 0 VALUE_POBOT  from dual;
    OK, the tables and data are now set to the logic of "update".

    Look at the data in the XML_TRANSFER table.

    1st row (with TAX_NR = 111111):

    UPDATE statement in this case should work as: the VALUE_ODPR must be the same as VALUE_POBOT in the FIR_SET table.

    This part, I managed to do with this SQL:
    PROCEDURE     xml_update is
    BEGIN
    
    update fir_set an
    set an.value_pobot = an.value_odpr
    
    where let = (select distinct max(let) from fir_set)
    and krog = (select max(krog) from fir_set)
    and
      (select sum(a.VALUE_ODPR)-b.POBOT 
     
      from fir_SET a, xml_transfer b
      WHERE a.tax_nr = b.tax_nr
      and an.tax_nr = a.tax_nr
      group by a.tax_nr,b.POBOT) = 0;
      
      commit;
      end;
    Resoult is like:
    LET                     KROG                  TAX_NR                 STEV_FAK                VALUE_ODPR            VALUE_POBOT                  
    ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- 
    2011                    7                      111111                 10                     2000                   2000  
    2011                    7                      111111                 11                     400                    400
    2011                    7                      111111                 12                     100                    100  
    2011                    7                      111111                 13                     200                    200                
    OK the following example is a little more complicated and I can't understand it. I don't know how to explain it properly... I'll
    Post the resoult and try to explain it:
    LET                     KROG                  TAX_NR                 STEV_FAK                VALUE_ODPR            VALUE_POBOT                  
    ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- ---------------------- 
    2011                    7                      222222                 1                      200                    200  
    2011                    7                      222222                 2                      20.7                   20.7
    2011                    7                      222222                 3                      100                    100  
    2011                    7                      222222                 4                      400                    30   
    So what we need to do, it's that we check is XML_TRANSFER. POBOT - VALUE_ODPR > 0, if it is, then we are updating VALUE_POBOT with VALUE_ODPR.
    In the next line check us again if the above statement is correct, and if we do the same thing. The process will continue as long as the statement
    will be correct.

    If the statement is no longer correct to do this operation: XML_TRANSFER. POBOT - SUM (VALUE_ODPR) (ON THE INSIDE OF THE SAME TAX_NR! Then group by tax_nr!)
    and last update row with resoult. In any case, we can get negative numbers.


    I really do help I explained my problem so that you can understand what I want to achieve. If you have any questions do not hesitate to ask.

    Thank you very much for your help!

    Best regards, Cain!

    Hello

    OK, I think I knew this time:

    update fir_SET an
    set value_pobot =(
                    select case when calc_VALUE_POBOT> 0 then calc_VALUE_POBOT else 0 end
                    from (
                            select
                                a.rowid row_id,
                                case
                                when b.pobot
                                     -   sum(a.value_odpr)
                                         over (partition by a.tax_nr order by a.stev_fak) >=0
                                then value_odpr
                                else value_odpr
                                    +   b.pobot
                                    -   sum(a.value_odpr)
                                        over (partition by a.tax_nr order by a.stev_fak)
                                end as calc_VALUE_POBOT
                            from
                                fir_SET a,
                                xml_transfer b
                            WHERE a.tax_nr = b.tax_nr ) tmp
                    where an.rowid = tmp.row_id
                    )
    where let = (select distinct max(let) from fir_set)
    and krog = (select max(krog) from fir_set)  ;     
    

    Is this ok for you?

    Kind regards
    Sylvie

  • Cannot cancel firefox update help please!

    Help, please.

    I want to cancel the update Firefox as soon as possible.

    I have watched videos on youtube and have read articles - nothing works and most of the instructions are over my head. »
    Is there a simple way to restore Firefox to the way it was before the "cool".

    Any help is appreciated...

    Thank you.

    blueave said

    I expect a very simple solution.

    I think it's technically possible to create a tool for this, but it's beyond my capabilities.

    Maybe we should rotate to a different approach: what is missing from your profile ' refresh after "you need back?

  • Latest ubuntu update - help Firefox and bookmarks missing - why?

    I've just updated to the latest Ubuntu and Firefox lacks the Menu Help and the drop down for bookmarks. The only choices in the right side menu of the mouse in the area of the tabs are:
    Navigateion toolbar, tabs on the toolbar, toolbar add-on, bookmarks on Top and customize. I cannot yet understand what version of Firefox I have.

    It seems that I can add bookmarks, but her do not appear when I press the little drop-down arrow in the Navigation bar.

    In the window of my browser, nothing between the title bar and the navigation bar.

    What gives?

    Thank you
    Herb Miller

    Hi herb,

    It would be helpful to know what version of ubuntu you are using. I am currently in Ubuntu LTS of 11.4 using Firefox canonical 15.0a2 (Aurora)

    Try to press and hold the Alt key on the keyboard that can display all of the menu items.

    To find out which version you are using, try the troubleshooting option. If this does not work in the menu, use the address bar when you type in web addresses and go to Subject: support . It is another method to obtain the same information.

    If you have the favorite item on the file or ubuntu bar then drop down to the bookmarks are not available, use the favorite item that you have, or the sidebar which can be accessed using the keyboard Ctrl + B

    If you disable the menutoolbar so that the firefox button is available the drop-down list of bookmarks reappear (you may need to add back in Customizing).

    You have the menu global integration and/or ubufox installed and active.

  • I just updated my computer on windows 7 and I can't find my old favorites from before the update help?

    k so I just updated my computer and I can't find my favorites yet ive tried it before google search and the entire solution did nothing, I even tried the tasks of file that didn't work because I don't know what they would be under. Please help a lot of important things lost...

    First of all the set Windows 7 to show hidden files and folders, for details of how to proceed, see http://www.bleepingcomputer.com/tutorials/tutorial151.html

    Now set your computer look for a file called places.sqlite, you will find at least one copy in your current profile folder (the location where user data is stored). For more information on how to access your profile folder, see the article of profiles - where Firefox stores your bookmarks, passwords and other user data .

    If there is a second copy of this file also can contain your old favorites. With Firefox closed, rename the version in your current profile in places.sqlite.old folder, and then copy the other file in your profile folder. Restart Firefox to see if your old favorites are back.

  • Windows 8 "license is invalid" after Windows updates (help please!)

    Hello

    I have a C540 all in one (no load) running Windows 8 and noticed yesterday that Windows updates have been failure for months then tried to run all the updates so that I can update to 8.1 (and, possibly, 10). At that time (and since purchase - I'm the original purchaser) Windows 8 has been activated very well.

    There were various failures and reversions of updates and now Windows does not recognize the Activation Code. The key is material, it shows that I have a key in the registry, but when I entered in the service of Activation of Windows I get the error:

    The following error occurred while trying to use the product key:

    Code:
    0xC004F01F

    Description:
    The Software Licensing Service determined that the license is not valid.

    Microsoft helpfully told me this isn't their problem because it is an OEM license (even if the only thing I've done is apply the updates of Windows) and I need to buy a key to sales at retail. Lenovo speaks for me because I'm out of warranty.

    Someone at - it ideas or experience or I'll just have to hit this PC with a massive hammer and not buy Lenovo or authorized OEM PCs again?

    Thanks in advance!

    I think I have a half today to answer my own question.

    Today (without any changes made to anything) the key to Activation of Windows 8 was suddenly recognized and valid again. Now install each windows update individually also works.

    I think that it is possible, but there is an intermittent hardware fault kind on the C540 causing quite different material for the MS license not to recognize the configuration (and think that the license is not valid for the PC), whatever it is not permanent.

    Then - in terms of correction... Well I don't have - he went just by itself and I guess he'll be back one day...

  • XPRT: Updated help with 4.1.15

    Hello

    I tried to install the latest update for my XPRT but it crashed during the process. I had to pull the battery to get back on and now I've lost all of the home screen. I see the status bar, but everything else is black. There is a lockscreen, but after I unlock the device, the screen is all black with absolutely nothing else that the status bar. Help, please! Only, I bought this phone last week. I think I shouldn't have interrupted the process of update.

    You will need to hard reset according to the following instructions.

    1. Power off phone.
    2. Wait 15 seconds.
    3. Hold down the M and R , then press button walk / stop.
    4. When you get to the screen after the Red M logo, you will see a white triangle. Press @ .
    5. Go to factory reset with the volume keys. Make your choice with the return key. Accept the warning.
    6. Select reboot the system with the return key.

  • 10.6.8 updated help as late as possible bone (I need?)

    I'm trying to update my imac OS version 10.6.8 to El Capitan (latest version as of today ' hui)

    I have read the conditions required to update, but I must be not understand something obvious.

    I have 4 GB of memory, plenty of hard drive and Im on a 2007 imac... (seems like I'm always in clear regarding the specs on the apple website to update)

    When I use the software update on the imac it says my computer is up to date.

    Any help appreciated. If I can't upgrade to the latest version of el capitan or Im wrong understand a basic concept of what I would need or not need to buy it please let me know. also, what OS can I update on my imac? Thank you

    Back up your data, check your applications for compatibilityand download El Capitan from the Mac App Store.

    (137761)

  • Impossible to update IMPORTANT 52 and 2 Optional updates = HELP!

    Hi I need help with the following, I'm not a computer Pro. So, try using a simple terminology please lol.

    My laptop is Windows 7

    > Cannot install important updates 52

    > Cannot install optional updates 2

    > Is an error message: Code 80070643 Windows Update encountered an unknown error

    Code 80071 A 91 Windows Update encountered an unknown error

    See: http://social.answers.microsoft.com/Forums/bg-BG/vistawu/thread/5ad884f0-d545-42b0-8226-db75086f1800

    Windows 7 update error code: 80070643 and A 80071, 91

    TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.

  • Impossible to update, help!

    I use IE8, SP3 Windows XP home. I can't update manually. When I try, the page says "Internet Explorer cannot display the webpage". I also tried to update directly through the web page of Windows update but get the same results. Automatic updates is enabled and has always been. Something is blocking me.

    My system is infected. I removed multiple detections in recent days. I also tried to install the scanner of Windows Live but they downloads are also blocked, they only partially loading and then freeze.

    I use Super Anti-spyware, Malwarebytes Anti-malware and Hitman Pro 3.5 for safety. Everyone has detected and 'removed' several infected items since several days but new detections come every day. I always scan in SafeMode with network and always update before you scan them.

    I tried a system restore to get back a little more than a month and that did not help.

    I'm afraid that since I could not update with Windows, these questions penetrate into a hole.

    Help, please

    Thank you!

    See...

    Help: I got hacked. Now what should I do?
         http://TechNet.Microsoft.com/en-us/library/cc700813.aspx

    Personal data backup (which none should be considered 100% reliable at this point) then format the HARD disk and do a clean install of Windows.  Please note that a repair installation (upgrade AKA on-site) will NOT fix it!

    HOW to do a clean install of Windows XP: see method 1 and http://michaelstevenstech.com/cleanxpinstall.html#steps in http://support.microsoft.com/kb/978307

    Once installed the clean, you will have the equivalent of a "new computer" in order to take care of everything on the next page before connecting the machine to the internet or a local network (i.e. other computers) and before using a USB or SD card that is not brand new, or has not been freshly formattedotherwise:

    4 steps to help protect your new computer before going online
         http://www.Microsoft.com/security/pypc.aspx

    Other useful references include:

    HOW to get a computer that is running Windows XP Gold (no Service Pack) fully patched (after a clean install)
    http://groups.Google.com/group/Microsoft.public.windowsupdate/MSG/3f5afa8ed33e121c

    HOW TO get a computer that is running Windows XP SP1 (a) or SP2 fully patched (after a clean install)
    http://groups.Google.com/group/Microsoft.public.WindowsXP.General/MSG/a066ae41add7dd2b

    Tip: After getting the computer fully patched, download/install KB971029 manually: http://support.microsoft.com/kb/971029

    NB: No matter what Norton or McAfee free trial which is preinstalled on the computer when you bought will be reinstalled (but invalid) when Windows is reinstalled. You MUST uninstall the trial for free and download/run the removal tool before installing updates, Windows Service Packs, or updates IE and before installing your new antivirus application [1] (which will require WinXP SP3 must be installed).

    Norton Removal Tool
         FTP://ftp.Symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    McAfee Consumer product removal tool
         http://download.McAfee.com/Products/Licensed/cust_support_patches/MCPR.exe

    See also:

    Risks & benefits of P2P file sharing
    http://www.Microsoft.com/protect/data/downloadfileshare/filesharing.aspx
    http://blogs.technet.com/MMPC/archive/2008/10/06/the-cost-of-free-software.aspx

    Measures to help prevent spyware
    http://www.Microsoft.com/security/spyware/prevent.aspx

    Measures to help prevent computer worms
    http://www.Microsoft.com/security/worms/prevent.aspx

    Avoid fake security software!
    http://www.Microsoft.com/security/antivirus/rogue.aspx

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair facility.

    ~~~~~~~~~~~~~~~~~~~~~
    [1] I can recommend Microsoft Security Essentials (free; ( http://www.microsoft.com/security_essentials/default.aspx), anti-virus Kaspersky and NOD32 Anti-virus.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • MS = drive C Critical Updates: help!

    My C drive fills up with MS. updates I installed a new hard drive (2nd) to cope, but the default value of updates from MS C. technician told me that if I did a clean reinstall I could reformat my drives and change the letters, but he didn't tell me how to get around the master/slave settings , so I'm stuck on the old C drive at the moment, but several times I do a re-install.

    The support technician then disappeared and changed his email for all other calls for assistance has rebounded.

    Help.

    I have so far spent a whole day to reinstall XP and am back to square 1 with an overloaded C drive and an empty D drive :(

    Advice appreciated.

    Thank you

    Yes thank you Mike and all,

    This is excellent news! -J' I always use this pc a lot and am very proud of the fact that I kept going for a dozen years now: there is nothing wrong with it and the addition of a modern with 10 x the storage HDD gave a new breath of life. I don't think I'm even complete turn on RAM yet! :-o

    Thank you once again ;)

Maybe you are looking for