Testing for division by zero

This program consists of 2 classes.
The getRating method performs actual calculations based on the below values. The program runs OK, until you test it when dividing by zero.
I am trying to return 0 if there is division by zero. I don't think I am approaching this correctly. In all 4 calculations, the only variable that the other numbers are divided by is attempts.
So, I was trying to catch the value of attempts here, then return a 0 if attempts are <= 0.
Is this the correct location to put the conditional logic? Should it be up in the method that actually performs the calculations?
The compile error indicates "cannot find symbol" at the if(r2... test.
Thanks
  System.out.println("\nTest2");
    Quarterback r2 = new Quarterback("Fred Savage", "Loyola");
    r2.setYards(78);
    r2.setTouchdowns(0);
    r2.setCompletions(5);
    r2.setAttempts(0);
    r2.setInterceptions(2);
    if(r2.setAttempts>0){
     System.out.println("The rating should be 36.7.");
     System.out.println("Your code calculates a rating of " + r2.getRating());
    } else {
     System.out.println("Attempts were zero so rating is zero" + "0");
    }

if(r2.setAttempts>0){This isn't valid syntax. setAttempts is a method which takes parameters, for one thing, and likely doesn't return a value that you can compare with anything. There might be a getAttempts() method for that, but it's your class so supposedly only you know about that.
But it sounds like you just don't want the getRating() method to fail with a division by zero error. Well, put the logic in that method, not here.
So in the getRating method, you should check for the attempts value being zero before you try to divide by it.

Similar Messages

  • [Solved] Division by zero. What to do?

    This is all about one variable ($progress) which, sadly, will rarely equal zero, resulting in an annoying "division by zero!" error.
    expectedCompletion="$( echo 3k $elapsedTime 10000 \* $progress / $totalTime / 0k 0.5 + 1 / f | dc )"
    The only "fix" I've been able to think about so far, is to add one to $progress when it's equal to zero.
    However, as I am a bash noob, I am wondering if there's a better solution. If for example I could catch the error, not output an error massage, but instead return a value of my choice, that's be cool.
    There may also be a mathematical solution to the problem, but I certainly don't see it.
    In any case, thanks in advance.
    Last edited by zacariaz (2012-09-11 21:08:24)

    What I added is something like an if statement, and works as expected. It relies on some implementation details like that the expression is grouped and evaluated from left to right and that the execution is aborted as soon as the endresult can be determined.
    Edit: It also relies on echo never failing. Otherwise you could end up with some unexpected results like "progress 0, echo fail, so calculate result"
    var=$( [ cond -eq 0 ] && echo a || echo b )
    -> set var to the stdout of the shell command:
    test if cond equals 0
    &&: If true (exitcode 0)
    echo a
    ||: test and echo both with exitcode 0, so the or is already true, do nothing
    &&: False (exitcode not 0), so skip echo a
    ||: we arent't successful yet, so
    echo b
    If you want to use a more straight forward if construct, it would be something like this:
    if [ $progress -eq 0]; then
    expectedCompletion="progress is 0"
    else
    expectedCompletion="$( ... YOURCOMMAND ...)"
    fi
    Last edited by progandy (2012-09-11 21:16:29)

  • Division by zero

    I need help: I am trying to take 40,000 rows of historical forecast (planned demand) and 40,000 rows of sales orders (actual demand) and the the Absolute (ABS) value of the difference of the actual demand vs the planned demand to then sum up at a sku and
    DC level what the Weighted Mean Average percent of Error would would be.
    What I have is the following in a query:
    Field 1: Sku CD & DC CD(Group By) - this is the sku and DC concant unique record
    Field 2: MarFY15_Lag (Sum) - this is the forecast a.k.a planned demand
    Field 3: March_FY2015_Sales Order Qty_CS (Sum) - this is the actual demand
    Field 4: ABS_Mar_FY15 (Sum) - this is the absolute value of the difference of the Field 2 - Field 3 in a previous query and this is now the result in this query.
    So now in this query I was trying to do a simple calculation like:
    WMAPE_FCSTSKU_DC: ([ABS_Mar_FY15]/[March_FY2015_Sales Order Qty_CS]) - However this simple calculation had problems and returned a syntax error of "Division by zero".
    Problem #1
    So then I read some chat boards and noticed that my problem is that in my Field 2 I have records with some zeros. Meaning I have had some customers or sales folks who never forecasted the sku at that DC but for that same sku and DC I did have a positive
    value for the Field 3 where a customer had demand with the intent to buy that product. So in this example I need to solve for the 0 in the forecast and let's say the order demand being greater than 1. I think I could try and return a value for this line item
    for something like: "% N/A - 0 FCST"
    Problem #2
    Now the second part of the equation's problem is that in some example for field 2 a customer has provided a forecast but in field 3 they never sent us any orders. So for this again I have a division by zero problem and I think the solve should be something
    like: "% N/A - 0 Cust Demand"
    Problem #3
    Now in some examples of the raw data I have 0 field 2 (FCST) and 0 in the field 3 (demand) and the ABs would then equal 0. In this part of the equation I would like the value to return "% N/A - No FCST & No Demand". By having these record identified
    in the 40,000 line items I can then hunt to determine why is it in future months are we forecasting this based on one months (March 2015) before of not having any activity? Is this new business or is this lost business. new business great... Lost business
    pull the future months forecast and move on.
    So now that we know the three problems then obviously the last step in the equation should be if I have a positive value in Field 2 and a positive value in field 3 then simply calculate the WMAPE.
    This is where I need help as I would like to do all the above mentioned in one query, but someone smarter than me might say I need to break it up into multiple steps. All in all I think I will to do some sort of equation that relies on IIF and Nz but I am
    not sure how to write it... 
    Also I will create some mock data if this helps someone to see and test it:
    Sku CD & DC CD SumOfMarFY15_Lag
    SumOfMarch_FY2015_Sales Order Qty_CS
    SumOfABS_Mar_FY15
    10000013942232 0
    20 20
    124100862215 10
    0 10
    10000026522203 0
    0 0
    997101912216 9
    12 3
    762101912202 21
    21 0
    Any help is greatly appreciated. 
    Gary

    Ugh... the mock didn't didn't show up on the website very clearly so I will try it again but use this character | to parse it out for you:
    4 column titles and 4 values per the 5 rows of data.
    Sku CD & DC CD |
    SumOfMarFY15_Lag |SumOfMarch_FY2015_Sales Order Qty_CS
     | SumOfABS_Mar_FY15
    10000013942232 |
    0 | 20 |
    20
    124100862215 |
    10 | 0 |
    10
    10000026522203 |
    0 | 0 |
    0
    997101912216 |
    9 | 12
    | 3
    762101912202 |
    21 | 21 |
    0
    GFS

  • Oracle 10g GetMetricData Division by Zero Error

    Windows Server 2000 (SP4)
    Oracle 10gR1 (10.1.0.2.0)
    ASM enabled
    Using advice found:
    http://www.dbazine.com/blogs/blog-cf/chrisfoot/blogentry.2005-09-17.7657940139
    http://www.dbazine.com/blogs/blog-cf/chrisfoot/10goemlessons
    on this forum and other places, I have more or less restored functionality to my 10g EM console. The upload process appears to be working normally and the web interface works for just about everything except the "Home" tab. I also cannot reach the ASM page to perform ASM functions.
    Here are the most recent entries from the emagent.trc file.
    2006-03-22 08:25:54 Thread-3020 WARN upload: FxferSend: received http error in header from repository: http://MYSERVER.MYDOMAIN.lcl:5500/em/upload/
         ERROR-400|ORA-20206: Target does not exist: Agent does not exist for http://MYSERVER.MYDOMAIN.LCL:1830/emd/main
         ORA-06512: at "SYSMAN.EMD_LOADER", line 1662
    ORA-06512: at line 1
    2006-03-22 08:25:54 Thread-3020 ERROR upload: Failed to upload file A0000001.xml, ret = -2
    2006-03-22 08:25:54 Thread-3020 ERROR upload: 3 Failures in a row for A0000001.xml, we give up
    2006-03-22 08:25:54 Thread-3020 ERROR upload: Error in uploadXMLFiles. Trying again in 300.00 seconds.
    2006-03-22 08:26:13 Thread-3528 WARN http: 392,-1: nmehl_httpListener: signaled to exit from emctl
    == Restarted ===
    2006-03-22 08:30:17 Thread-3376 WARN command: Job Subsystem Timeout set at 600 seconds
    2006-03-22 08:30:17 Thread-3376 WARN upload: Upload manager has no Failure script: disabled
    2006-03-22 08:30:17 Thread-3376 WARN upload: Recovering left over xml files in upload directory
    2006-03-22 08:30:17 Thread-3376 WARN upload: Recovered 0 left over xml files in upload directory
    2006-03-22 08:30:17 Thread-3376 WARN metadata: Metric collectSnapshot does not have any data columns
    2006-03-22 08:30:23 Thread-3376 WARN TargetManager: Regenerating all Metadata
    2006-03-22 08:30:24 Thread-3376 ERROR util.files: ERROR: nmeufis_new: failed in lfiopn on file: E:\oracle\product\10.1.0\db_1\MYSERVER.MYDOMAIN.lcl_SID\sysman\emd\agntstmp.txt. error = 2 (No such file or directory)
    2006-03-22 08:30:24 Thread-3376 WARN collector: the column name tabscanall_ps in this condition does not exist
    2006-03-22 08:30:24 Thread-3376 WARN collector: the column name tabscanall_pt in this condition does not exist
    2006-03-22 08:30:24 Thread-3376 ERROR recvlets: Inserted target oracle_database SID.pcs.url.com into hash table
    2006-03-22 08:30:56 Thread-3816 ERROR util.files: nmeufile_getLength: Error in lfilen. Error = 2 (No such file or directory)
    2006-03-22 08:32:20 Thread-3416 ERROR fetchlets.oslinetok: Process stderr = Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144.
    2006-03-22 08:32:20 Thread-3416 ERROR engine: [oracle_database,SID.pcs.url.com,dumpFull] : nmeegd_GetMetricData failed : Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144.
    2006-03-22 08:32:24 Thread-3416 ERROR fetchlets.oslinetok: Process stderr = Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144, <STDIN> line 2.
    2006-03-22 08:32:24 Thread-3416 ERROR engine: [oracle_database,SID.pcs.url.com,archFull] : nmeegd_GetMetricData failed : Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144, <STDIN> line 2.
    2006-03-22 08:47:20 Thread-3476 ERROR fetchlets.oslinetok: Process stderr = Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144.
    2006-03-22 08:47:20 Thread-3476 ERROR engine: [oracle_database,SID.pcs.url.com,dumpFull] : nmeegd_GetMetricData failed : Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144.
    2006-03-22 08:47:23 Thread-3476 ERROR fetchlets.oslinetok: Process stderr = Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144, <STDIN> line 2.
    2006-03-22 08:47:23 Thread-3476 ERROR engine: [oracle_database,SID.pcs.url.com,archFull] : nmeegd_GetMetricData failed : Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144, <STDIN> line 2.
    And here are the entries from the emoms.log file.
    2006-03-22 08:28:55,562 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ias.ias.IASIntegration
    2006-03-22 08:28:56,000 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
    2006-03-22 08:28:56,187 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.eml.ssl.intg.SSLIntegration
    2006-03-22 08:28:56,343 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.tip.oem.central.domain.ProcessConnectDomainIntg
    2006-03-22 08:28:56,343 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2006-03-22 08:28:56,359 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2006-03-22 08:28:56,359 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2006-03-22 08:28:56,375 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.reports.em.RepIntg
    2006-03-22 08:28:56,375 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2006-03-22 08:28:56,375 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2006-03-22 08:28:56,390 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2006-03-22 08:28:56,390 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2006-03-22 08:28:56,406 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2006-03-22 08:28:56,406 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    2006-03-22 08:31:28,171 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:31:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:32:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:32:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:33:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:33:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:34:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:34:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:35:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:35:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:36:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:36:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:37:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:37:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:38:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:38:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:39:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:39:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:40:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:40:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:41:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:41:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:42:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:42:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:43:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:43:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:44:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:44:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:45:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:45:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:46:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:46:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:47:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:47:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:48:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:48:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:49:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:49:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:50:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:50:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:51:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:51:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:52:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:52:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:53:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:53:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:54:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:54:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:55:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:55:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:56:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:56:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:57:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:57:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:58:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:58:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:59:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:59:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 09:00:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 09:00:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 09:01:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 09:01:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 09:02:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 09:02:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 09:03:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 09:03:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    Here is the status from the sysman.emd_ping table:
    Agent is Unreachable (REASON = Connection refused: connect). Host is unreachable (REASON = Internal Error pinging the host for EMD_URL http://MYSERVER.MYDOMAIN.lcl:1830/emd/main.CreateProcess: /usr/sbin/ping MYSERVER.MYDOMAIN.lcl error=3)
    Finally, from the SYSMAN.MGMT_TARGETS table, I see the following statuses for the various target types
    Target_type; Last_load_time
    oracle_emrep; 22-MAR-06
    oracle_emd; 22-MAR-06
    host; 13-OCT-04
    oracle_database; 13-OCT-04
    oracle_listener; 13-OCT-04
    osm_instance; 13-OCT-04
    Any thoughts or additional suggestions?? I have been working on getting the EM console back up and fully functional for several days. I am more of a 9i type, not 10g.
    Yes, it's been 18 months since this last worked; what can I say? I inherited this server from a vendor.
    Regards,
    hmscott
    Does anyone have

    A couple of updates:
    1. I found a perl script file in the sysman\admin\scripts folder called semd_common.pl. I found the line number referenced in the log file. Apparently, the $total variable (representing disk space, I think) is not set properly. When I hard coded it to a fixed value and restarted the dbConsole, I stopped getting the division by zero error.
    Not a good solution, but maybe a step sideways. I'd like to remove my edit, but one thing at a time.
    2. I found another error message in the OracleDBConsoleSIDwebsrvc.log file:
    03/22/06 14:44:23 Received exitCode 1 from emctl istatus
    Googling this particular message did not reveal a whole lot to me.
    Any more ideas? Anyone?
    Regards,
    hmscott

  • [svn] 2772: Fix type in list of excluded tests for websphere.

    Revision: 2772
    Author: [email protected]
    Date: 2008-08-07 04:29:28 -0700 (Thu, 07 Aug 2008)
    Log Message:
    Fix type in list of excluded tests for websphere.
    Modified Paths:
    blazeds/branches/3.0.x/qa/features/excludes.properties

    I'm not really sure what method that person was talking about. I just read he had a successful install so I posted it.
    But I'll hazard a guess
    1. copy your entire drive to a backup drive
    2. boot into that drive and test it out - make sure its a flawless backup, it works, and the hard drive has no problems
    3. eject that drive, disconnect it and reboot into the leopard install dvd
    4. erase your main hard drive using disc utilities on the leopard install dvd -- you've made a backup, made sure that backup was good, and disconnected it so it's currently safely disconnected from the leopard install you're about to do. Also, on the hard drive you're erasing and installing leopard on to, many people recommend "Zeroing" it as well as erasing it. That option is part of the erase function in disc utilities on the leopard install disc.
    5. do a clean install of leopard
    6. follow step 4 from that original post exactly as that person described to do.
    7. read the rest of what they said
    That's pretty much it. With the backup/erase/clean install/import/ you pretty much get everything you need exactly the way you want it with very few things missing -- and you've done this over a clean install. Plus that poster did mention that you can select what you want to import from your backup hard drive.
    It sounds like its a "clean install" method that gives you control via "import from machine" option in the installer. Control over what parts of your "old mac" you want to import into your "new leopard mac".
    Hopefully that helps. It sounds more involved, but its actually pretty quick and provides you with a perfectly save backup in case anything goes wrong with the leopard install.

  • VB6: division by zero

    When I try to run "One sample" examples in VB6 folder
    appears the message-box: "Error: 11 division by zero".
    I followed the suggestion to change decimal separator
    from "." to ",".

    Hello,
    What version of LabVIEW are you using? If you are using 6.0, please download and install the 6.0.2 update from our website. Then mass compile your VIs to see if the problem persists. You can read the on-line help in LabVIEW for more information on performing a mass compile.
    If, after installing 6.0.2 and mass compiling, you still get the error, then the problem may be with the ActiveX control itself...to my knowledge LabVIEW is much more strict in handling exception errors than other environments like Visual Basic.
    I hope this suggestion helps. Good luck with your application, and have a pleasant day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Error Division by zero not performed during run payroll

    Dear Experts,
    I have problem when run payroll. Division by zero not performed
    Calculation rules L0133****5 AMTIOTLMT RTE=TSDIVP DIVID ARR ZER
    Thanks in advance

    Hi,
    Try checking in It0008 the field Work/hours Period (DIVGV). The issue must be there. In there you probably have a 0 and you must have the numbers of hours of work. Check that field. If you have a number different than 0 then the issue is some place else. If the number is 0 you can enter the hours manually for now to solve it, but you will have to check some configuration of the working times because that field should be fill automatic.
    Check that and if the problem is not in there told us and maybe we can help find another solution.
    Hope it helps.
    Kind Regards,
    Edoardo

  • KSPP division by zero error

    Hi all,
    While performing TCODE KSPP I'm getting the followiing error message:
    "Division by zeo in formula" Message no. CR324
    Anyone know what is this related to and how it could be fixed, Please need your help!!
    Thanks...

    Hi ,
    KSPP transfers Plan Activities to Production when you run Long Term Planning ( LTP )..
    Your error meassge says that " Division in Zero " error . It means that please check the receipe of the Materials included in the LTP and the formula of the resources .. The formula of the resources must be incorrect .. which is causing the error..
    Please revert back for any further clarifications..
    Regards
    Sarada

  • Division by Zero not performed,PCR X013 error!!!

    Hi Guru's,
    i am running the US Payroll...
    during the Simulation run it is giving me this error"Division by Zero not performed,PCR X013 error"...
    i have 3 WT's in IT 0008
    Basic pay Processing class -1 subtype 0
    other allowance                     P.C-1 subtype 3
    special allowance                  P.C-1 subtype 3
    wht's the solution?also when i chk /001 it has P.C -1 value 5...
    so if i change my wagetypes to P.C-1 Value 5 then i get PCR X010 (Addition) error...
    Kindly guide me i am really confused on this...
    also give me a clear understanding on these 2 PCR's X010  n X013
    hr_user

    Please fill the field "work hours/period" in IT0008 for the employee. I hope this will resolve your issue.
    Regards

  • Encounter division by zero on call of DAQmxStartTask

    I am programming in Borland Builder 5 (C++) for data acquisition with a USB-6009 board.
    When the DAQmx ANSI C example program, Acq-IntClk, is compiled and run, the program encounters a division by zero error during the DAQmxStartTask(taskHandle) call.  The only change in the code which I made was 'DEV1' to 'QNWDAQ' to match a device name change I had made with the NI 'MAX' utility.
    I had previously encountered the same problem in an instrument control program I was writing.  I was successfully doing digital output before adding the analog input code.
    Has this problem been encountered before?  Is there a solution?

    The code resulting in the divide by zero is listed below.  The line where the divide by zero error occurs is marked by
    //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    #include <stdio.h>
    #include "NIDAQmx.h"
    #define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
    int main(int argc, char *argv[])
     int32       error=0;
     TaskHandle  taskHandle=0;
     int32       read;
     float64     data[1000];
     char        errBuff[2048]={'\0'};
     /*/ DAQmx Configure Code
     DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
     DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"USBDAQ/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
     DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",10000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1000));
     /*/ DAQmx Start Code
     DAQmxErrChk (DAQmxStartTask(taskHandle));//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
     /*/ DAQmx Read Code
     DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val_GroupByChannel,data,1000,&read,NULL));
     printf("Acquired %d points\n",read);
    Error:
     if( DAQmxFailed(error) )
      DAQmxGetExtendedErrorInfo(errBuff,2048);
     if( taskHandle!=0 )  {
      /*/ DAQmx Stop Code
      DAQmxStopTask(taskHandle);
      DAQmxClearTask(taskHandle);
     if( DAQmxFailed(error) )
      printf("DAQmx Error: %s\n",errBuff);
     printf("End of program, press Enter key to quit\n");
     getchar();
     return 0;

  • XI testing for two SAP R/3 systems with same system id/logical system

    Hi
    We are currently in the process of upgrading our R/3 4.7 to ECC 6.0 and plan to maintain dual landscape for DEV & QA (4.7 & ECC 6.0) for a period  for testing and maintaining existing applications for fixes etc. The second DEV & QA (upgraded to ECC 6.0) are copy of respective systems and these systems are created automatically under technical systems in SLD by auto update (RZ70).
    The question is, can we use the same XI system for testing inbound/outbound interfaces for both the systems i.e 4.7 & ECC 6.0 at the same time.  I am aware of the fact that XI Technical/Business sytems dependent on unique logical systems, so we cannot create new business system for the upgraded DEV-II ECC 6.0 system. 
    For your information, we have two slds (one for XID/XIQ and second one for XIP).
    What are the options without disturbing & maintaining the current XI system set up?
    1) Can we change current Business systems e.g DEV010 to use new technical system i.e DEV-II ECC 6.0 for testing for a period and switch it back to DEV-I 4.7 technical system?
    2) or change logitical system name of DEV-II ECC 6.0 and create new business sytem in SLD without interfering the existing setup and modify/create interfaces to use this new business system?
    3) Do we need to refresh cache from time to time in XI ?
    4) Any other implications
    We will be upgrading XI to PI 7.1 after ECC 6. 0 Upgrade.
    Any views on this would be highly appreciated.
    Regards
    Chandu

    Hi
    Technical System was created in the SLD automatically after RZ70 configuration in the new DEV-II system. We then modified Business System to use the new Technical system and carried out following steps:
    1)     Original Idoc metadata was deleted from XID
    2)     The port definition  was deleted
    3)     A new port definition was created for new system
    4)     The metadata for each idoc type used was re-created in IDX2 , using METADATA -> CREATE
    5)     This brought in all known versions of the idoc segments, including the 7.1 version.
    I have already checked the guides suggested for our upgrade and we are thinking of going ahead with fresh installation and migrating the interfaces.
    Regards
    Chandu

  • How to test for différent Select into a single PL/SQL block ?

    Hi,
    I am relatively new to PL/SQL and I am trying to do multiple selects int a single PL/SQL block. I am confronted to the fact that if a single select returns no data, I have to go to the WHEN DATA_NOT_FOUND exception.
    Or, I would like to test for different selects.
    In an authentification script, I am searching in a table for a USER ID (USERID) and an application ID, to check if a user is registered under this USERID for this APPLICATION.
    There are different possibilities : 4 possibilities :
    - USERID Existing or not Existing and
    - Aplication ID found or not found for this particular USERID.
    I would like to test for thes 4 possibilities to get the status of this partiular user regardin this application.
    The problem is that if one select returns no row, I go to the exception data not found.
    In the example below you see that if no row returned, go to the exception
    DECLARE
    P_USERID VARCHAR2(400) DEFAULT NULL;
    P_APPLICATION_ID NUMBER DEFAULT NULL;
    P_REGISTERED VARCHAR2(400) DEFAULT NULL;
    BEGIN
    SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
    WHERE  USERID = :P39_USERID AND APPLICATION_ID = :APP_ID ;
    :P39_TYPE_UTILISATEUR := 'USER_REGISTERED';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    :P39_TYPE_UTILISATEUR := 'USER_NOT_FOUND';
    END;I would like to do first this statement :
    SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
    WHERE  USERID = :P39_USERID Then to do this one if the user is found :
    SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
    WHERE  USERID = :P39_USERID AND APPLICATION_ID = :APP_ID ;etc...
    I basically don't want to go to the not found exception before having tested the 4 possibilities.
    Do you have a suggestion ?
    Thank you for your kind help !
    Christian

    Surely there are only 3 conditions to check?
    1. The user exists and has that app
    2. The user exists and doesn't have that app
    3. The user doesn't exist
    You could do this in one sql statement like:
    with mimic_data_table as (select 1 userid, 1 appid from dual union all
                              select 1 userid, 2 appid from dual union all
                              select 2 userid, 1 appid from dual),
    -- end of mimicking your table
             params_table as (select :p_userid userid, :p_appid appid from dual)
    select pt.userid,
           pt.appid,
           decode(min(case when dt.userid = pt.userid and dt.appid = pt.appid then 1
                           when dt.userid = pt.userid then 2
                           else 3
                      end), 1, 'User and app exist',
                            2, 'User exists but not for this app',
                            3, 'User doesn''t exist') user_app_check
    from   mimic_data_table dt,
           params_table pt
    where  pt.userid = dt.userid (+)
    group by pt.userid, pt.appid;
    :p_userid = 1
    :p_appid = 2
        USERID      APPID USER_APP_CHECK                 
             1          2 User and app exist   
    :p_userid = 1
    :p_appid = 3
        USERID      APPID USER_APP_CHECK                 
             1          3 User exists but not for this app
    :p_userid = 3
    :p_appid = 2
        USERID      APPID USER_APP_CHECK                 
             3          2 User doesn't exist  

  • How to test for existence of AcroXFA test objects?

    Hi -
    I'm writing scripts to test an XFA form with dynamic subforms.  For example, at the end of Part 4, the user hits a Validate button, and if their data is correct, then the Validate button disappears and a Part 5 subform appears.
    So my script looks something like this:
    Function GetButtonPart4Validate()
       Set GetButtonPart4Validate = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1")
    .AcroXFAForm("sfPart4").AcroXFAButton("sfValidate")
    End Function
    Function GetPart5()
       Set GetPart5 = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5")
    End Function
    GetButtonPart4Validate().Click
    PDFDoc( "TestForm" ).WaitProperty "ready", true, 60000  ' Wait for event processing complete
    If DataTable("boolValidates", dtLocalSheet) = "TRUE"  Then
         If( GetPart5().Exist ) Then
              ' A: Checkpoint Succeeds: Validation was successful
         Else
              ' B: Checkpoint fails: Validation failed
         Endif
    Else
         If(  GetPart5().Exist ) Then
              ' C: Checkpoint Fails:  Validation was unexpected
         Else
               ' D: Checkpoint Succeeds:  Validation failed as expected
         Endif
    Endif
    Unfortunately it appears that XfaSubForm.Exist always returns TRUE.  In other QTP testing domains (eg "Exist Property (WinObject)" in QTP Help), the documented behaviour of the Exist property is to be true if the desired test object can be found in the application-under-test. Typically this means that when the script tries to access an XFA widget which doesn't exist (even something like GetPart5().getROProperty("visible") ), the script stops and thinks for a minute or so, and eventually produces a test error that the object doesn't exist then muddles onward. It is the "stops and thinks for a minute or so" which frustrates me, since these are delays which I am trying to avoid.
    Another possible angle I looked into was counting the subforms under Part 5's parent.
    PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").RefreshObject
    PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5").Refresh Object
    ' check to see if there is a 'sfPart5'
    Dim MyChildren, i
    Set MyChildren = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").ChildObjects
    For i=0 to MyChildren.Count - 1
        print i & " name=" & MyChildren(i).GetROProperty("name")
    Next
    This also seems to fail:  Part5 doesn't appear among its parent's children (at least before QTP actually tries to use it).
    The PDF Test Toolkit User Guide doesn't specifically mention that Exist or RefreshObject or ChildObjects are implemented, so I can't say AcroQTP isn't working as designed, but if you're looking for suggestions for improvement, I'll vote for fulfilling these parts to the QTP.  Please confirm my conclusions that these are not properly implemented, or whether I'm missing something.
    In the meantime, do you have any recommendation on how to proceed?  My present workaround is to look for a "validation error" windows dialog that indicates Part 5 won't exist, but this won't work in future test scripts.
    Cheers,
    Brent

    Hi,
    816387 wrote:
    ... QUERY:-  Find all customers who have at most one account at the Perryridge branch.
    SOLUTION *1* :-
    select customer_name
    from depositor,account
    where account.account_number=depositor.account_number and
    branch_name='Perryridge'
    group by customer_name
    having count(account.account_number) <=1
    ok running correctly
    That finds customers who have exactly one account at Perryridge.
    The assignment is to find customers who have at most one account at Perryridge. You need to include customers with 0 accounts at Perryridge, as well. You could use an outer join, or MINUS, or a NOT IN subquery, or a NOT EXISTS sub-query (as mentioned above) to do that.
    Can there be customers who have no accounts at all, at any branch? If so, you'll need to use the customer table in this problem, as well as depositor and account.
    >
    SOLUTION *2* :-
    select D1.customer_name
    from depositor D1
    where unique
    (select customer_name
         from depositor D2,account A1
         where D1.customer_name=D2.customer_name
              D2.account_number=A1.account_number and
              branch_name='Perryridge'
    gives error:-
    where unique
    ..........*^*
    ERROR at line 3:
    ORA-00936: missing expression
    Logic of both solution are correct . But Solution 2 gives error in oracle. I want unique construct to work.Sorry, it doesn't in Oracle. I don't know of anything like that in Oracle.
    Does "WHERE UNIQUE (SELECT ...)" work in some other database system? Which?
    How to do it. Or How can i test for the absence of duplicate tuples ??????
    Your Solution 1 is the best way to find customers with exatly 1 account (rather than 0 or 1 accounts) at Perryridge. Is there any reason why you wouldn't want to use it, if you ever needed to find customers with exactly one account there?

  • Testing for IS NOT NULL with left join tables

    Dear Experts,
    The query is showing the NULL rows in the query below....
    Any ideas, advice please? tx, sandra
    This is the sql inspector:
    SELECT O100321.FULL_NAME_LFMI, O100321.ID, O100404.ID, O100321.ID_SOURCE
    , O100404.NAME, O100321.PERSON_UID, O100404.PERSON_UID, O100404.VISA_TYPE
    FROM ODSMGR.PERSON O100321
    , ODSMGR.VISA O100404
    WHERE ( ( O100321.PERSON_UID = O100404.PERSON_UID(+) ) ) AND ( O100404.VISA_TYPE(+) IS NOT NULL )

    Hi Everyone,
    I am understanding alot of what Michael and Rod wrote.... I am just puzzled over the following:
    the query below is left joining the STUDENT table to
    HOLD table.
    The HOLD table - contains rows for students who have holds on their record.
    a student can have more than one hold (health, HIPAA, basic life saving course)
    BUT, for this query: I'm only interested that a hold exists, so I'm choosing MAX on hold desc.
    Selecting a MAX, helps me, bec. it reduces my join to a 1 to 1 relationship, instead of
    1 to many relationship.
    Before I posted this thread at all, the LEFT JOIN below testing for IS NOT NULL worked w/o
    me having to code IS NOT NULL twice....
    Is that because, what's happening "behind the scenes" is that a temporary table containing all max rows is being
    created, for which Discoverer has no predefined join instructions, so it's letting me do a LEFT JOIN and have
    the IS NOT NULL condition.
    I would so appreciate clarification. I have a meeting on Tues, for which I have to explain LEFT JOINS to the user
    and how they should create a query. I need to come up with rules.
    If I feel "clear", I asked my boss to buy Camtasia videocast software to create a training clip for user to follow.
    Also, if any Banner user would like me to email the DIS query to run on their machine, I would be glad to do so.
    thx sooo much, Sandra
    SELECT O100384.ACADEMIC_PERIOD, O100255.ID, O100384.ID, O100255.NAME, O100384.NAME, O100255.PERSON_UID, O100384.PERSON_UID, MAX(O100255.HOLD_DESC)
    FROM ODSMGR.HOLD O100255, ODSMGR.STUDENT O100384
    WHERE ( ( O100384.PERSON_UID = O100255.PERSON_UID(+) ) ) AND ( O100384.ACADEMIC_PERIOD = '200820' )
    GROUP BY O100384.ACADEMIC_PERIOD, O100255.ID, O100384.ID, O100255.NAME, O100384.NAME, O100255.PERSON_UID, O100384.PERSON_UID
    HAVING ( ( MAX(O100255.HOLD_DESC(+)) ) IS NOT NULL )
    ORDER BY O100384.NAME ASC

  • How do I test for the presence of an active open document in Photoshop?

    I’m new to Adobe scripting, and one of my first scripts deals with the activeDocument in Photoshop.
    If there is no activeDocument, I want to display a message and terminate the script.  My efforts
    so far have been met with frustration.  While developing the script in ExtendScript Toolkit,
    I used the  test expression "activeDocument in app", and everything worked as expected. And when I installed the script
    in the Photoshop scripts folder and ran it from Photoshop with a document open, it also worked.
    But when I ran the script from Photoshop with no document open, it failed.
    Moreover, after that,the script failed when I tried to run it in ESTK.
    I did some testing and found that my test expression, "activeDocument in app"
    was returning true, even though no document was open.
    Still in ESTK, I replaced the “app” with ”Application” in the test expression.  That worked when
    I stepped through the script.  But when I tried to run it without stopping, it stopped at the
    test expression, and displayed the error message, “Application is undefined.”
    So how do I test for the presence of an open document in Photoshop ??

    After posting this, I discovered the Photoshop Scripting Forum, and I found my answer there.—
    I should have used “app.Documents.length” as my test expression.

Maybe you are looking for

  • HT201343 Airplay mirroring whilst using minidisplay port

    Hi, I was hoping someone could offer advice as I'm struggling to find the answer. If I use airplay mirroring on a 2012 macbook air whilst a second external display is also connected through a minidisplay port adapter would the airplay mirroring of th

  • Join two dataProviders

    I have a chart with a secondary axis and two ArrayCollections because I want the series on the left axis to update independently from the series on the right axis. Flex charts support only one dataProvider. How do I join two ArrayCollections to make

  • RMI - Serializing Object with the right constructor..?

    Hello, I am trying to usr RMI to send an object that I serialized but I have further porblems than that. The Object that I am using is called FileLineReader and it Extends Buffered Reader. SInce Buffered Reader is not Serializable, I implemented Seri

  • Every other time I open a new window or start firefox I get 2 windows in one & nothing happens.

    Every other time that I start up Firefox I get 2 windows in one, and nothing happens. Also, whenever I open a new window in Firefox every other window comes up as 2 in one and nothing happens.

  • Can someone help with slice html?

    Take a look at www.1430wnav.com/contests.html I cannot for the life of me figure out how to keep the html slice from splitting the left graphics. HELP!