Some calculation is wrong

i have this code to calculate people that done the test per manager,I have these tables sliptrip,r_managers,agents
sliptrip contains the test info and people who did it,r_managers the management info,agents the employee info
with sliptriip as(select a.manager,count(distinct(p.salary_no))Partake,
round((SUM(Case When score >='80' then 1 else 0 end)
/count(agent_id))*100,2)||'%'Slipstrip,
round((SUM(Case When score <'80' then 1 else 0 end)
/count(agent_id))*100,2)||'%'Not_done
from SlipTrip p ,Agents a
where salary_no = agent_id
GROUP BY a.manager
total_emp as(select a.manager,a.surname,count(distinct(agent_id))Total_emp
from agents b,r_managers a
where b.man_username = a.man_username
group by a.manager,a.surname
select a.manager,slipstrip,not_done,total_emp,partake
from total_emp e ,sliptriip a
where a.manager= e.manager
:::so the above is not giving me the expected results and i see some people have done the test twice and passed on 2 occasions which it's suppose to pick one test that has been passed

945188 wrote:
:::so the above is not giving me the expected results and i see some people have done the test twice and passed on 2 occasions which it's suppose to pick > one test that has been passed
Maybe your query is faulty or badly written.
We are unable to make a determination when it's not formatted, no table definitions present, no test data is provided and no expected results are given.
:p

Similar Messages

  • Discussion Board Error For Community Sorry Some thing went wrong can not complete this action

    HI All,
    we migrated the IBM community's  to SharePoint 2013 using tool,I taken the back up of that community site in SharePoint and i restored it in different SharePoint2013 Environment.
    When we trying to create any new discussion in Discussion Board List we are getting an error like.
    Sorry Some Thing Went Wrong.
    Cannot complete this action.
    Please try again.
    I checked with Correlation Id in logs but i am unable to find any issue,can you any one help on this,how to resolve this issue.
    Thanks,
    Please Help Me.

    This is the error i am seeing in my log files.Can any one help on this.I already tried to take back up and restore even thought having the same problem.
    runtime                      
    tkau
    Unexpected
    System.Runtime.InteropServices.COMException: Cannot complete this action.  Please try again.    at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String
    bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames,
    Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter
    pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)     at Microsoft.S...
    Regards,
    Phani

  • How to change it if some data is wrong in ODS and infocube

    hi all:
        could you please tell me how to change it if some data is wrong in ODS and infocube ?
    Best regards

    You receive information on all requests that have run in the InfoCube and you can delete requests if required.
    http://help.sap.com/saphelp_nw04s/helpdata/en/d4/aa6437469e4f0ae10000009b38f8cf/frameset.htm
    Request ID you can find in administration of the InfoCube. If a cubes is compressed you can't delete requestwise...
    Regards
    Andreas

  • Some Calculations are not working in Discoverer 10g after upgrade from 4.1

    Hi Gurus,
    We are recently upgraded Oracle Discovere 10g from 4.1, some calculations are not working in Discoverer 10g. I appreciate if you could fix below calculation(s) in 10g.
    CASE WHEN TRUNC("Expenditure Item Month") = '31-JAN2007' THEN SUM(Wtd Qty A) WHEN TRUNC("Expenditure Item Month") = '28-FEB-2007' THEN SUM(Wtd Qty A) WHEN TRUNC("Expenditure Item Month") = '31-MAR-2007' THEN SUM(Wtd Qty A) END
    Thanks & Regards
    Vikram

    Sabra,
    Not sure exactly what this might be... there could be an issue there.
    Please make sure that you review the upgrade.log. Are there any errors / warnings?
    Also, you might wanna peek the Metalink Note:262623.1 - Master Note for OracleAS Portal Upgrade Issues, where you'll find some nice things where to start looking at.
    Later you may wanna open a Service Request into the Oracle Support.
    I hope it helps...
    Cheers,
    Pedro.

  • My iPad 4 wifi 3G keeps charging slowly takes half a hour to get to 15% when plug into the wall with the plug and the lead what come with the iPad just wondering as I think some thing is wrong with the iPad

    My iPad 4 wifi 3G keeps charging slowly takes half a hour to get to 15% when plug into the wall with the plug and the lead what come with the iPad just wondering as I think some thing is wrong with the iPad

    Using the battery level meter in this manner is comparable to using your car's fuel gauge to calculate miles per gallon. The only thing that matters is the total amount of operating time from full charge to auto-shutdown.
    Use the wall-mount charger that came with the iPad and charge overnight.  Do NOT use an iPod/iPhone charger.  Do NOT use a computer's USB port.  Then, operate it normally until auto shut-down (ignore any low level alerts that may appear).  An irony is that doing that test to determine the total operating time is also the procedure necessary to calibrate the battery level meter.
    I'm not claiming that you do not have a problem.  I am stating, however, that we don't yet know.  If the above test does, in fact, indicate a problem, read this.
    Also, according to Apple:
    Use Your iPad Regularly
    For proper reporting of the battery’s state of charge, be sure to go through at least one charge cycle per month (charging the battery to 100% and then completely running it down).
    Elsewhere, Apple elaborates and explains that two half-discharges (or four quarter-discharges, etc.) equals one full discharge.

  • Ranch Billing, the excise condition type JMOD calculation is wrong

    Hi
    I wish to know that in case of Branch Billing, the excise condition type calculation is wrong!!
    I am surprised and unable to know how it could be?
    In billing document display (T.code VF03) , Out of 3 Line items, Basic Excise Duty of 2 line items/ Materials were wrongly calculated.
    i.e. In Item level Condition Overview---> the excise condition type JMOD --> details -->
    Amount                   10.000  %
    Cond.base value            79,077.85  INR
    Condition value             5,733.14  INR
                                                                                    Alt.calc.type   355
    Ideally, It must be 7907.85 INR instead of 5733.14 INR wrong value.
    Please help me to know the possible reason.
    Thanking you.
    PP

    Check the condtion value in condition type UTXJ . If the JMOD value is 10% of UTXJ then assessable value should have been maintained for the Material and Plant combination in J1ID. This is due to Routine 351 maintined in pricing procedure for the condition type UTXJ
    check and confirm
    Senthils

  • FI posting baseline calculation is wrong.

    HI expart.
    in userexit_fill_xkomk1how to imlplennt for sap note -112385 for baseline calculation is wrong.
    What i will do for baseline calulation is coming as creation date.
    Thanks
    Dhirendra.

    Hi,
    By any chance, did the user enter march date in FB08 screen ?
    Best Regards,
    Madhu

  • How can i open my iphone if some one but wrong password for many time?

    how can i open my iphone if some one but wrong password for many time (i want my files) ?

    See here
    http://support.apple.com/kb/HT1212

  • HT1338 In order to some calculator functions on the "Bankrate" website I need to enable the Java Browser function.  I can I accomplished that task?

    In order to some calculator functions on the "Bankrate" website I need to enable the Java Browser function.  I can I accomplished that task?

    In recent versions of Lion, Java is automatically disabled (for security reasons) if it goes unused for a certain amount of time.  You can re-enable it in the General pane of the Java Preferences app, found in /Applications/Utilities.  (Check the box at the top of that pane.)  If trying to open Java Preferences results in a message asking if you want to install Java, you don't actually have Java yet.  Click the install button to install it.
    Note that having Java turned on in your web browser is dangerous, due to recent proliferation of malware that uses Java to install itself.

  • Formula calculation showing wrong data.

    Hi All,
    I have an issue in the formula calculation at BEx.
    I have a formula2 whose values is formula1/RKF * Constant.
    formula2=formula1/RKF * Constant.
    Formula1    formual2        RKF             constant
    73.00          25.63            80.00         28
    The error is the actual value of  formula2 to be a
         formula2 = 73.00/80.00 * 28
                      =25.33
    But in report result it is displaying as 25.63.
    for some different values it is showing very different result.
    can any one tell me how to round of this value to avoid confusion
    regards,
    santosh.

    Santosh,
    rounding off the result will not solve your problem. In your scenario, the actual result is 25.33 and rounding it off will be 25.
    Now BI is showing you a value of 25.63 and rounding it off will give you 26. This will still give you the wrong answer.
    You can go to the properties for the formula and in the display properties, you can change it 0 decimal places instead of 2. This is just a interim solution.
    Regards,
    Sameer

  • Some fonts have wrong "internal names," won't display properly in font menu

    Several fonts which I have acquired over the years have a peculiar but bothersome problem.
    The fonts' "file names" in the Finder are perfectly fine, and the files are named what they're supposed to be named. And when the fonts are "installed," they work perfectly fine in all applications, as they are supposed to. But here's the problem: the fonts are mis-named in each application's "font menu." In my case, most of the font names (which are of the standard English alphabet and have standard English font titles) instead appear listed as a long string of Chinese characters.
    As a random example, a font called "Holiday Ranch" made by FontDiner is not listed alphabetically between "Hoefler" and "Impact" in my font menus, where it ought to be, but instead is listed at the end of the font menu list, after "Zapfino," as a long string of Chinese characters. This wouldn't be such a problem if there were only one or two fonts misnamed this way, but when (as I do) you have 25 fonts at the bottom of your font list, all of which are long strings of incomprehensible characters, then it becomes a problem indeed.
    The fonts come from a variety of sources, so it can't be a flaw in just one company's coding. I contacted (as per the example above) FontDiner, but so far they have no response. But for other mis-named fonts in my collection, I don't even know who designed them or where they came from, so I can't ask the designer for a solution.
    Keep in mind that all of the fonts work perfectly fine, once I've tracked them down in the big morass of hard-to-find misnamed fonts at the bottom of my font menus. They work in all Apple applications like TextEdit, they work in Adobe products like Illustrator, they work in MSWord -- they work everywhere. The only issue is the naming.
    Also, the file names are all correct. In the example above, the file name for "Holiday Ranch" is "Holiday Ranch.ttf". And when I inspect the font with Linotype's "FontExplorer X," it is listed properly as "Holiday Ranch." But here's the key: When I open the font file in Apple's "Font Book" (v.2.2.1), the name is indeed listed there as a long string of Chinese characters, and when I install it onto my computer using Font Book, it unfortunately uses that name.
    I've tried downloading a wide variety of "font tool" programs, but none have been able to fix this problem.
    I also tried (using FontExplorer X) "Cleaning system font caches" and "Cleaning application font caches" and restarting, but that had no effect whatsoever. I don't think it's an error on the part of OSX, I think that the fonts are simply misnamed internally, or that something went awry when the font designer converted the fonts from one format to another, or something like that.
    I think the simplest solution would be to just re-name the fonts internally. But how? I can't find a way to do it. Even the optimistically-named freeware program "Font Renamer" did not change the internal names.
    Has anyone else ever experienced this problem, and if so, how can it be fixed? Thanks.

    As for free downloads to play with: unfortunately, the FontDiner ones are all commercial and thus not free...
    They do have some free fonts. At the bottom of the first page (after the lead in page), click the "Free Silverware" link at the bottom. The fonts that come up on that page are all free.
    I downloaded four of those fonts at random. All work as expected. That doesn't prove though that the Holiday Ranch font doesn't have something wrong with it.
    Kurt, as I noted above, I already did empty all font cache files and restart. Unfortunately, that did not fix the problem.
    Oops! Sorry, missed that.
    So I think the problem is not that there's anything wrong with my OS, but rather that the person who made the font simply goofed when giving it a name!
    It seems to point that way, but you're seeing the issue across fonts from different vendors. I would believe it's either the OS, or Font Book itself.
    Your tagline shows you're running 10.6.4. Download and reinstall the 10.6.4 Combo updater. It's surprising how many problems go away when applying the combos.

  • Debit memo excise duty calculation is wrong

    Hi,
    Basic excise duty is wrongly picked in to debit memo as explained below
    1) Depot sales order: creted for qty 1
       Basic excise duty 80
    2) delivery created:
    3)depot excise invoice creted: Adjusted depot stock aganist plant excise invoice 123 and basic excise duty is 100
    4) created depot invoice; CAPTURED BASIC EXCISE DUTY IS 100 which is correct (356 movement type assigned to basic ex duty in pricing procedure)
    Depot returns:
    1)returns sales order created with referance to depot invoice
       copied basic excise duty as 1000 (which is correct)
    2) cretaed credit memo request: Here basic excise duty is 80 wronly copied from depot sales order instead of 100
    Please provide the solution
    Regards,
    ramesh

    Dear Lakshimipathy,
    Thanks for your response
    The excise duty combination is same in both returns order and credit memo as mentioned below
    Variable key
    country
    plant
    control code
    valid from 2010/02/27   valid to 2010/02/27
    condition supplements
    Country         name                                amount        unit       delition  id
    JEXP     IN: A/R BED %     10.000      %     flaged 
    And in pricing procedur6e of the returns order is neccessay 356 alternative calculation type
    as i mentioned above valid date has been expired and marked for delition how system is determinng excise duty for retuns order. please suggest
    Best regards,
    ramesh

  • Time stamp to excel .....some thing is wrong in my program

    Hi 
    i am trying to write date and time to excel sheet i got this example from https://decibel.ni.com/content/docs/DOC-2108. but when i tried to write it on excel it is just showing the numbers but not exact date and time what i want.
    some body have idea whats wrong in my VI(see attached file)?
    thanks
    Attachments:
    LVtime2Exceltime.vi ‏8 KB

    You might want to swap up to this Version.  There are a few things that LVtime2Exceltime.vi   does not handle correctly (like Zone, DST and the Leapyear Bug in excel)  you may want to vote for this Idea
    Jeff
    Attachments:
    Time to XL.vi ‏15 KB

  • CST and VAT calculation is wrong for Tool amortisation PO

    Hi,
    We have tool amortization process in out company.
    Vendor develops tool for us and same will be amortized for each part paying addionally some amount other than material cost ( Condition type ZAMT).
    Excise duties to be calculated for tool cost also. But not VAT or CST.
    Now issue is  tool amortization cost is calculated for excise duties ( Base price and ZAMT price ) which is correct.
    When we calculate the CST/VAT it considers tool amortization cost also for basic price due to this we need to pay additional VAT or CST .
    Is there any provision can be made in MM pricing procedure for ZAMT or in TAXINN for VAT/CST to exclude tool amortization cost.
    Please reply
    Guru

    Have your pricing procedure as follows:-
    100::::PR00::::::Base Price
    110::::ZAMT:::::Tool Cost:::::::::::::100
    120:::::::::::::::Total for ED:::::::::::100::::110
    130::::ZVAT:::::VAT on Base Price::::100
    140::::ZCST:::::CST on Base Price::::100
    G. Lakshmipathi

  • Need Help by some % calculation

    Hi Guys,
    i need some help calculating something.
    I have 5 boxes; "boxA" - "boxB" - "boxC" - "boxD" and "boxE". Box A–C are sums coming from other fields.
    "boxD" represent the VTA – and can be just 19% ore 0%.
    This means that "boxE" = ("boxA" + "boxB" + "boxC") * "boxD" ("box D" is equal with 0,19  – if the customer types 19% in the field – ore "0" (zero) – by leaving the "boxD" empty or typing the value "0" inside. A multiplication with 0 would be false, so it had to be ignored if the content of the "boxD" is 0)
    I suppose it will be something with "if" and "else" but how i say, I'm a greenhorn in this domain.
    Actually i found something that could help but i thing some parts – the definition of var v4, if v4 get the value 19% ore 0% – are missing.
    (function() {
       // Get the field values, as numbers
       var v1 = +getField("boxA").value;
       var v2 = +getField("boxB").value;
       var v3 = +getField("boxC").value;
       var v4 = +getField("boxD").value;
        // I suppose here comes some "if" "else" stuff for the definitoon of var4
       // Perform the calculation; the result is the content of the "boxE"
       var result = v4 * (v1 + v2 + v3);
       // Set the value of this field to the result
       event.value = result;

    I would make sure you are not having a problem with using the "," as the decimal separator.
    What problem are you having?
    Is there an error in the JavaScript console?
    If so, what is the exact wording?
    Have you examined the values within the script to make sure you are getting the value you are expecting?

Maybe you are looking for

  • I downgraded iTunes to 10.5.2 and now my iPad cannot sync

    I downdated my iTunes from 10.7 to 10.5.2 in an attempt to solve the homesharing problem with my ATV2. I had to uninstall iTunes to do this, and during the re-install I was told that iTunes Library.itl was created by a later version, so I hid it. Now

  • Can I create hyperlinked text in an Illustrator CS4 document?

    I wish to create a tabloid (11x17) document that contains a number of hyperlinks. The document will be a 2-sided printout that shows clearly the hyperlinks. However, the links will obviously not work except in the electronically transmitted PDF - whi

  • BAPI -PO CREATION

    Hi all, Please suggest me how to create purchase order using BAPI

  • EA6350 fails to load web pages, but all other online services continue working

    Occasionally, when using the internet, web pages stop loading. Other online services such as messenger programs, Netflix, and online games still function properly. I usually end up having to restart the router in order to re-enable browsing. We are u

  • Should be an easy one...

    I have two questions. 1) I have shot at 24p and 30p. When I import from the camera should I change the import settings depending on which takes match up with the frame rates? My guess is yes, but I want to confirm 2) If the majority of the work is 24