Retirement whit same values for differente ledgers

Hi expert,
Here we have a few depreciation areas and a coupe of this area have different ledgers. When we run the transaction for retire an asset the value of leading ledger is moved to all others ledger. Is this a program error? I asked this because this problem not occurs when I run AFAB, for this case the program respect the different ledgers and post different values.
How can I fix this problem with retirement?
best regards,
Thanks in advence,
Egberto de M. Alves

Hi Paul,
thanks for your answer. But my issue is not with acquisition postings as I have the same posting for acquisitions in both the ledger but in case of retirement, my Profit and Loss on sale of asset should be different in both the ledgers(as the depreciation keys are different in both the ledgers/dep areas) which is not happening.
I tried ASKB, but i guess that is for acquisition posting.
Please let me know how retirement posting can be handled as in depreciation area setting retirement related posting is not mentioned.
Thanks in advance,
Regards,
Kavita

Similar Messages

  • SCCM 2012 Reporting Code Returns Same Value For Total Number Of Required Updates Per Computer

    I'm trying to make a custom report in SCCM 2012 R2 with SQL 2012 since Microsoft took out the ability to list the number of updates needed per computer. This was in WSUS reporting but is not in SCCM reporting. I've made a custom report for this but can't
    quite get it to work. The report runs but the same value for total number of updates needed shows up for every computer. I took a query from one report and am trying to get it to run inside the select statement from another report. Here is the code as it is
    right now:
    declare @CI_ID int; select @CI_ID=CI_ID from fn_rbac_ConfigurationItems(@UserSIDs)  where CIType_ID=9 and CI_UniqueID=@AuthListID
              declare @StateID int
              select @StateID=StateID from fn_rbac_StateNames(@UserSIDs)  sn where sn.StateName=@StateName and TopicType=300
              declare @RequiredUpdateCount int
              select @RequiredUpdateCount=Count(v_StateNames.Statename) from   
    v_StateNames,   
    v_Update_ComplianceStatusAll   
    Inner Join v_R_System On (v_R_System.ResourceID = v_Update_ComplianceStatusAll.ResourceID)   
    Inner Join v_UpdateInfo On (v_UpdateInfo.CI_ID = v_Update_ComplianceStatusAll.CI_ID)   
    where   
    v_StateNames.TopicType = 500 and   
    v_StateNames.StateID = v_Update_ComplianceStatusAll.Status and   
    v_StateNames.Statename = 'Update is required'   
    Group By v_R_System.Name0
              select
                ccm.ResourceID,
                rs.Name0+isnull('.'+rs.Resource_Domain_or_Workgr0, '') as MachineName,
                rs.User_Domain0+'\'+User_Name0 as LastLoggedOnUser,
                asite.SMS_Assigned_Sites0 as AssignedSite,
                rs.Client_Version0 as ClientVersion,
    @RequiredUpdateCount as RequiredUpdates  
              from fn_rbac_ClientCollectionMembers(@UserSIDs)  ccm
              join fn_rbac_Update_ComplianceStatusAll(@UserSIDs)  cs on cs.CI_ID=@CI_ID and cs.ResourceID=ccm.ResourceID
                and (@StateID=0 and cs.Status=0 or @StateID=1 and cs.Status in (1,3) or @StateID=2 and cs.Status=2)
              join fn_rbac_R_System(@UserSIDs)  rs on rs.ResourceID = ccm.ResourceID
              left join fn_rbac_RA_System_SMSAssignedSites(@UserSIDs)  asite on asite.ResourceID = ccm.ResourceID
              where ccm.CollectionID=@CollID
              order by MachineName
    Ben JohnsonWY

    There's plenty wrong with it. It gives you no idea of how many patches each box needs. Then you have to click on each computer, click the sort arrow by the "required" column, and count the number needed. When you have hundreds of computers to work on this
    is a big deal as it's very time consuming. What's great about the view in WSUS that had this is that it listed this for you and you could sort the required column. So if have most computers needing 2 patches, you can go find the one that needs 40 and 150 (to
    over exaggerate) and put the time on them needed to see why they're so far behind. The WSUS format was quick, easy, and informative. SCCM makes getting this info a royal PITA which is why I'm (and many others) so royally peeved at MicroShaft for removing this
    functionality, but that's what we've all come to expect from MicroShaft--just like when then took the nice colorful themes out of Office 2010 and replaced them in Office 2013 with just white, gray, and a darker gray. That's super boring and actually hurts
    my eyes.
    Ben JohnsonWY

  • Qry return same value for a particular column for each row but not all time

    hi,
    We recently migrated to Oracle Database 10.2.0.3.0 from 9i. We were using a sql to populate a table and it had been running fine. After migration the same sql is fetching / population incorrect values, but not everytime. If we run the same sql again it gives a correct result.
    Ex:
    insert into a1 ( col1, col2, col3 )
    select a.field1, b.field2, c.field
    from tab1 a, tab2 b, tab3 c
    where a.field = b.field
    and b.field (+) = c.field
    something like this. Let us assume it fetches 200 rows
    But sometimes the col1 has the same value for all the 200 rows and col2, col3 has correct values. If we run the same sql next time, the col1 fetches the correct value and everything is correct.
    Could someone help on the above issue.

    I know it's difficult but can you put together a small test case for us to reproduce this behaviour? Did you contact Oracle Support?
    Any special constructs used behind the scenes? Virtual private database? Views?Materialized Views? Anything else?

  • Will a sequence return same value for two different sessions?

    Is there a possibility that a sequence will return same value to two different sessions when it is referred exactly at the same instance of time?

    @Justin... Thanks for your insight; indeed, we too feel this shouldn't ever happen and never heard of it either, but there it is. (No, we haven't logged a TAR yet -- whatever that is -- partly because it didn't occur to us and partly because we only recently came across the issue and sensibly want to do some testing before we cry foul.)
    However, the code is pretty straight-forward, much like this (inside a FOR EACH ROW trigger body):
    SELECT <seqname>.NEXTVAL INTO <keyvar> FROM DUAL;
    INSERT INTO <tblname> (<keyfield>, <... some other fields>)
    VALUES(<keyvar>, <... some other values> );
    (where <tblname> is NOT the table on which the trigger is fired). This is the only place where the sequence is ever accessed. The sequence state is way below its limits (either MAXVALUE or <keyfield>/<keyvar> datatype size).
    In this setup, end users sometimes got an out-of-the-blue SQL error to the effect that uniqueness constraint has been violated -- as I said, we used to have a unique index on <keyfield> -- which leads us to assume that the sequence generated a duplicate key (only way for the constraint to be violated, AFAIK). We released the constraint and indeed, using a simple SELECT <keyfield>, COUNT(*) FROM <tblname> GROUP BY <keyfield> HAVING COUNT(*)>1 got us some results.
    Unfortunately, the <tblname> table gets regularly purged by a consumer process so it's hard to trace; now we created a logger trigger, on <tblname> this time, which tracks cases of duplicate <keyfield> inserts... We'll see how it goes.
    @Laurent... winks at the CYCLE thing Our sequence is (needless to say) declared as NOCYCLE and the datatype is large enough to hold MAXVALUE.

  • Retrieve the same value for all rows

    Hi Folks,
    I am a newbie to Kodo JDO. I have a little but important problem. I use a
    query to retrieve data with a simple filter like PName=='A'. Normally it
    should retrieve 3 rows with 3 different values but it does not. Instead I
    got 3 rows but with all the same value of one row???
    Do I have a configuration problem?? Oh, I forgot, I use postgresql 8.0 on
    Windows...
    Thx a lot....
    Juergen

    Hi,
    You may want to turn on the SQL log (use the kodo.Log property, and set
    the SQL channel to TRACE... for more details on logging, check out
    chapter 3 in the Kodo Ref Guide) and see what SQL is being generated.
    Once you see the SQL, does it look right? If you run the generated SQL
    in your SQL command line, do the results match what you expect? If that
    doesn't help, maybe post the SQL and some info about your mapping.
    Thanks,
    Greg
    J wrote:
    Hi Folks,
    I am a newbie to Kodo JDO. I have a little but important problem. I use a
    query to retrieve data with a simple filter like PName=='A'. Normally it
    should retrieve 3 rows with 3 different values but it does not. Instead I
    got 3 rows but with all the same value of one row???
    Do I have a configuration problem?? Oh, I forgot, I use postgresql 8.0 on
    Windows...
    Thx a lot....
    Juergen

  • HashCode method return same value for different string?

    Hello. I am finding hashCode method of string return same hashcode for many different string? It seem when string is long we get same value many times? What is solution? I am useing JDK 1.0.2. Thank you.

    Hello. I am finding hashCode method of string return
    same hashcode for many different string? There are about 4 billion possible hashcode values.
    How many possible strings do you think there are?
    Obviously many strings will have the same hashcode.
    What is
    solution?The solution is to not depend on hashcodes being unique.

  • Different APC value for different ledgers

    Hi,
    we maintain two ledgers, one for IFRS, the other for local accounting. Considering some type of assets, we need to post different APC values to the IFRS ledger and the local ledger. How can this be done?
    thanks in advance,
    Zbynek

    Hi Arup,
    Yes, absoutely - you can use different RD for the same VRF on different PEs. In fact, if you have chosen to use the PE_IP_Address:Customer format of the RD then logically, the same VRF on different PEs will have different RDs because the PE addresses themselves are different.
    There is no obvious advantage or disadvantage to having the same or a different RD per the same VRF on different PEs. The RD is a tool that allows BGP to differentiate between identical prefixes from different VRFs on a single router. However, the value of RD has no influence on how the prefix will be assigned to a particular VRF on the destination PE. For this, route targets are always used.
    There is one specific use of different RDs: Advertising multiple paths to a single multihomed VRF site. Because to BGP, the entire value of <RD><Prefix><Netmask> is used in the best path selection algorithm, if two PEs connected to the same VRF site used the same RD, destination PEs and route reflectors would choose and advertise only one of them (remember: BGP always selects and advertises only a single best path). With different RDs, destination PEs and route reflectors see formally different NLRIs, and they perform the best path selection for each of them individually even though the actual <Prefix><Netmask> is the same.
    However, for simple VRF deployments, having a unique or identical RD on two PEs for the same VRF makes no significant difference.
    I hope other friends here will add their own thoughts about this.
    Best regards,
    Peter

  • Parallel accounting - different APC values for different ledgers

    < MODERATOR:  Please don't post in multiple forums.  Message locked.  Please review the [forum rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]>
    Hi all,
    I defined the following 3 depreciation areas:
    01 - IFRS - posts in realtime / target ledger grp = 0L
    30 - local - posts depreciation only / target ledger grp = Z1
    60 - difference 30-01 - posts only APC directly / target ledger grp = Z1
    0L contains leading ledger (IFRS)
    Z1 contains parallel ledger (local)
    Then I defined a new transaction type for acquisition (e.g. Z10) and limited it to depreciation area 01. This transaction type I wanted to use for acquisitions which are relevant only for IFRS ledger.
    Now I post an $1000 invoice using transaction F-90 (acquisition with vendor). I select posting key 70, in the field Account I select an asset under construction and I choose the transaction type Z10.
    After proceeding this step I would expect that the amount $1000 would be posted only in IFRS ledger. But it is not, it is posted in both ledgers.
    If I want to run the transaction ASKB (APC values posting), I get an error message "Account 14001 in company code 0100 cannot be directly posted to". The account 14001 is the acquisition account for the AuC used when posting the invoice.
    Why I get this message? How can I get the values posted correctly (i.e. only to IFRS ledger)?
    Thanks for all ideas
    Zbynek

    Did you get a solution to your issue.?
    Would you please mind sharing your solution ?
    I am in a similar situation where we have area 01 as local Gapp and area 15 as IFRS.
    we want to have 01 posted to leading and 15 to nonleading ledgers.
    thanks.

  • White balance values for NEF file

    Hello
    I'm using Ligthroom 1.2 with nikon raw files (NEF) taken with D80 camera (firmware 1.01).
    The white balance is most of the time set to 5300K on my camera. But in LR, it always shows 4950K, with tint set to -1.
    I know there is some compatibility problems between LR and NEF files, but does anyone know if there is a solution (except of course applying systematically the right temperature in LR during import.)?
    Thanks
    Erwann

    I believe the issue is actually that Nikon encrypts the white balance in NEF files of recent cameras. If you
    google for it you'll find lots of links to all the problems this caused. Adobe and other RAW software developers have had to reengineer the encryption of this value in order to get a reasonable value and in order to not break the DMCA (draconian US anti-piracy law). Apparently, for some cameras the algorithm is not so good. The alternative for Adobe would have been to use Nikon's RAW rendering library, which for obvious reasons will never happen. The only software I am aware of that correctly reads NEF white balance for cameras after the D2X without using Nikon's libraries is dcraw/ufraw, but they can get away with cracking the encryption. This really is one of the dumber things Nikon ever did.

  • DCIteratorBinding setting the same value for all the rows.

    Hi all,
    I have table with on of the column as id. I have made the id column as the hyper link , that takes me to the next page. I am trying to pass the id to the next page. I am using the managed bean for the same. The below code is used to create the link on the column. It sets the action to the function in the bean that sets the id as of the current row.
    <tr:column sortProperty="id" sortable="false"
    headerText="#{bindings.notification.hints.id.label}"
    id="c4">
    <tr:commandLink action="choice" text="#{row.bindings.id.inputValue}"
    id="cl1" actionListener="#{IdBean.extractID}">
    </tr:commandLink>
    </tr:column>
    below is the IdBean.extratctID()
    public void extractID(ActionEvent actionEvent){       
    BindingContext bindingContext = BindingContext.getCurrent();
    BindingContainer bindings;
    bindings = bindingContext.getCurrentBindingsEntry();
    DCIteratorBinding iter;
    iter = (DCIteratorBinding) bindings.get("notificationIterator");
    Row rw;
    rw = iter.getCurrentRow();
    String id;
    id = (String) rw.getAttribute("id");
    this.setId2(id);
    I am printing the id value on to the next page. But its just returning the vslue of the id for the first row for all the rows of the table.
    Any inputs as in do i need to refresh the iterator or something like that.
    Reagrds
    Sishant

    Hi,
    Following is the code i have added in my bean
    ValueExpression expression = getFacesContext().getApplication().getExpressionFactory().createValueExpression(getFacesContext().getELContext(), "#{pageFlowScope.emp1}", Object.class);
    Object id = expression.getValue(getFacesContext().getELContext());
    public FacesContext getFacesContext() {
    return FacesContext.getCurrentInstance();
    JSPX Code -
    <af:commandImageLink id="DuncanAngove"
    icon="/john.gif" partialSubmit="true"
    actionListener="#{Tweets.setEmployeeId}">
    <af:setActionListener from="Duncan Angove" to="#{pageFlowScope.emp1}" />
    But i am getting NullPointerException. I have tried it with application and request scope as well.
    javax.servlet.ServletException
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.UIXComponentBase.getValueExpression(UIXComponentBase.java:231)
         at project1.Tweets.setEmployeeId(Tweets.java:40)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 35 more
    Thanks
    Sishant

  • Release PO against contract whit limit value for USER

    Dear colleague,
    We work SRM server 5.5 . SP14 extended classic scenario, and we use contract management.
    We need to release PO against contract and we want to LIMIT the users that PO value have  to be between 60 USD as minimum order value and 120 USD as maximum order value.
    We know that solution for the minimum order value is to use the u2018minimum order valueu2019 in the contract item with the value 60.
    Can someone help with the solution to limit user to maximum order value against contract.
    Thanks
    B.R.
    Gil shinar

    One option is that you could implement the maximum value logic in BADI BBP_DOC_CHECK_BADI and give out proper error message if the user enters value outside of the range.

  • Same values for different address in BP

    Hi Guys,
    How to popup the standard (current) communication address details into new communication address details.
    Scenario:  The exited BP has one address and now he moved to another address, in that case we suppose to update or maintain his new address, am I right.
    When I click on u2018createu2019 for new address on address tab in BP, the screen should be popup with current address communication (Telephone number, mobile number, fax and email) details into new address communication fields.
    Ex : current address mobile number  9812345678, when you open new address.
    The new address screen mobile number field would be display with same number 9812345678. Without manually work.
    What is the solution for above business scenario in SAP 4.7
    Moderator message - Please do not offer points or rewards
    Cross post locked
    Thank you,
    Regards,
    Venkat.
    Edited by: Rob Burbank on Aug 5, 2010 10:30 AM

    Venkat
    You cannot make the present communication address for a customer to come into the address screen of the new customer you are creating.
    How does the system know that you are creating the master for the existing customer but with a new address!!!. It can be a new customer altogether.
    Another important thing is, In this scenario, you should not create a new BP master. Then the customer number will be different and all the old history of the customer will be useless for you for any analytical purposes.
    Just go to the customer master in change mode, and change the address. That should work well for ur need.

  • Same values for deferent address in BP

    Hi Guys,
    How to popup the standard (current) communication address details into new communication address details.
    Scenario:  The exited BP has one address and now he moved to another address, in that case we suppose to update or maintain his new address, am I right.
    When I click on u2018createu2019 for new address on address tab in BP, the screen should be popup with current address communication (Telephone number, mobile number, fax and email) details into new address communication fields.
    Ex : current address mobile number  9812345678, when you open new address.
    The new address screen mobile number field would be display with same number 9812345678. Without manually work.
    What is the solution for above business scenario in SAP 4.7
    Moderator message - Please do not offer points or rewards
    Thank you,
    Regards,
    Venkat.
    Edited by: Rob Burbank on Aug 5, 2010 10:29 AM

    Venkat
    You cannot make the present communication address for a customer to come into the address screen of the new customer you are creating.
    How does the system know that you are creating the master for the existing customer but with a new address!!!. It can be a new customer altogether.
    Another important thing is, In this scenario, you should not create a new BP master. Then the customer number will be different and all the old history of the customer will be useless for you for any analytical purposes.
    Just go to the customer master in change mode, and change the address. That should work well for ur need.

  • Random returning same values for all threads?

    <p>I "translated" an Applet example from a book to a MIDlet (as part of my learning process). However the MIDlet does not react as it should, and when the particles are all moving independently in the Applet, they are stuck together (as one) in the MIDlet.</p>
    <p>So far, only one possibility was suggested to me: if the Random object are created one after the other, they could end up based on the same seed (which is the clock by default) and will generate the same numbers.</p>
    <p>I tried to delay between the creation of the threads with no result. And the fact that the applet runs properly makes me wonder...</p>
    <p>Does anyone have a clue?</p>
    <p>In the MIDlet:</p>
    protected Thread makeThread(final Particle p) { // utility
        Runnable runloop = new Runnable() {
          public void run() {
            try {
              for(;;) {
                p.move();
                canvas.repaint();
                Thread.sleep(100); // 100msec is arbitrary
            catch (InterruptedException e) {  return; }
        return new Thread(runloop);
      }<p>In the particle:</p>
    protected final Random rng = new Random();
      public synchronized void move() {
        x += rng.nextInt(step) - (step/2);
        y += rng.nextInt(step) - (step/2);
        //returns exactly the same 10 times in a row
      }

    You might try justing just one static Random object.
    Also note that als long as your using CLDC 1.0, you don't have any floating point support.

  • Counting one of multiple rows with same value for same ID

    Hello,
    I have this query:
    SELECT
    count( case when EXISTS (
                SELECT *
                FROM  business_log bl, subject su
                WHERE  su.ID_SUBJECT = s.ID_SUBJECT
                and bl.id_subject = su.id_subject
                AND    bl.value = 'Solved'
    then 1 else null end) num_solved
    FROM subject s
    It is posible that one subject is more than once 'Solved' in table BUSINESS_LOG
    I want to count only one row solved for one subject.
    I must to use only SUBJECT table in the main query because of other counts.
    Thank You very much.
    Regards
    Milos
    Message was edited by: 2796614

    so in case you have no solved entry...you get NULL back instead of 0.....
    and....there is no need for the group by ....as you are only looking for one subject
    SELECT COALESCE((SELECT max(1)
                      FROM  business_log bl
                     WHERE bl.id_subject = s.id_subject
                       AND bl.value = 'Solved'),0) num_solved
      FROM subject s
    but....I would like to have a proof, that this one is faster than the outer-join solution.
    So...perhaps we'll see an execution plan for both of them.
    corrected....missing bracket

Maybe you are looking for

  • Kingston Hyperx & Neo2 problem!

    KHX3200AK2/1GR Kingston HyperX pc3200 ram, dual channel kit 2x512mb MSI Neo2 board with 1.4 official bios 0441RPBW 3500+ winchester -- stock speeds Of course when first building new system I stuck both modules into dimms 1&2 for dual channel. Didn't

  • How to custom table field to be sortable at core form

    Hi, Can anyone provide the hint for the captioned topic. Example, R11i PO autocreate document form, column 'Requestor' is not sortable, how to custom it to be sortable? Thanks in advance. Rgds, CY

  • Display attachments through WebDynpro Abap

    Hi all, I am currently working on the Generic Object Services and I manage to create attachment and retrieve them. however I can't find how to display attachments into a WebDynpro interface. The context: I have two applications which communicate with

  • Migration Assistant - Error Connecting to Network of sending MAC to new Mac

    Migration Assistant - Error Connecting to Network of sending MAC to new Mac So I doing the network Migration Assistant and its keeps giving me a ERROR connecting to Network of sending MAC to new MacBook Air... help...

  • Keyboard is not working on my g72-261us laptop.

    I am trying to determine why the keyboard is not working all the time. once windows 7 is up and running it doees not work. remote usb keyboard does not work either.  on startup (by pressing esc key), i see the boot menu but since keyboard is not work