View for update balance

How could we create a view in SQL group by account no and would gave us the following results from two tables stock and issue.
Or what other solutions we could answer the following problem.
A/C      Received Stock     Issued Stock     Balance
1     100     50     50
1     600     500     150
1     1000     200     950
1     4000     500     4450
1     1200     1000     4650
1          650     4000
1          4000     0
1     400          400
Thanks in advance for the solution

is there any column for arrangement?
select AC
,Received_Stock
,Issued_Stock
,Initial_Stock
+ sum(Received_Stock - Issued_Stock)
over (order by any_column_for_arrangement)
from your_table_or_view
order by any_column_for_arrangement
;

Similar Messages

  • Ios 5 Update New Features says that iCal now has a week view for iPhone but after updating last weekend, I don't see any week view--just List, Day and Month..How do I get the week view?

    ios 5 Update New Features says that calendar now has a week view but after updating my iPhone 4 last weekend, I don't see any week view for iCal--just List, Day and Month as in the past. Is the weekly view available for iCal and if so, how do I access it?

    Rotate your phone to landscape.

  • Unable to view entries in FAGLL03 for Zero Balance Clearing Account

    Hi experts,
    We are facing a unique problem. We are not able to view the line items of the Zero Balance clearing account. The master data of the G/L has been activated for line items but still the display of the items is not happening. I am getting the foll message:
    Account 19900000, company code 1100 is clearing account
    Message no. MSITEM111
    Diagnosis
    You have stored account 19900000 in company code 1100 as a clearing account. At the same time, you use line item management with this account.
    System Response
    Error message issued because line item display cannot read data for an account in a ledger if line items exist partially in the entry view together with clearing items for which there are no line items. In such cases, only the data with line items would be selected.
    Procedure
    Check the Customizing settings or account control. Change the settings so that only automatic postings without line items can be made to the account, or select a different account as the clearing account.
    Regards,
    Sateesh

    Hi
    In splitting case you need not the give the line item display tab for Zero Balance Clearing Account.
    Just remove that line item display in FS00 for Zero Balance account. You could be able to see the entries in FAGLL03
    Regards
    Sandeep

  • Please update the functional specifications for Vendor Balance Report

    Dear All,
    Please update the functional specifications for Vendor Balance Report with
    proper descriptions.
    Please include
    1. How your selection screen should look like..
    2. Output format ( in an excel sheet)
    3. Logic for every field in the output format (viz. .. how do link the
    vendors from the selection screen to the BKPf and BSEG tables, how do you
    find open and closed items in BSEG , etc.)
    Please avoid statements like 'The total value of all the break-up should
    tally with the balance as shown in FBL1N for a given vendor for the given
    day.'
    You need to give the logic for the FBL1N, in that case.
    Regards
    Rama Mohan

    Hello again,
    Regarding having them update the specs, one can dream. Dreams are free. LOL. Hopefully the memory makers will update their specs as more makers start supporting a large memory configuration.
    The 4GB sticks I am using are http://shop.kingston.com/partsinfo.asp?ktcpartno=KTL-TP667/4G
    I did not do an extended test of the sticks in my MBP. Their home is in the ThinkPad I have because it is running Windows Server 2008 with Hyper-V.
    As you can see from the link above, these little suckers are pricey. But consider the price of 2GB SoDIMMs were $950 when they entered the market a couple of years ago. The price will drop.
    I asked the Kingston rep that sent these to me if online sites like newegg.com would have them soon. She indicated no, but the corporate buying sites like CDW and Zone would. So check around. They just started shipped a couple of weeks ago so be patient.
    If you have any other questions, please stop by http://blogs.technet.com/keithcombs/archive/2008/07/05/testing-my-apple-macbook- pro-with-8gb-of-ram.aspx and ask there. I'll see them much more quickly.
    Cheers,
    Keith Combs
    Microsoft

  • Cost center empty in general ledger view for balance sheet accounts

    Hi !
    We are implementing ECC6 with new GL functionalities. We activated differents scenarii: cost center, profit center and segment.
    Using FB03 (display document) we noticed that in the entry view, everything is fine: cost center, profit center and segment are filled successfully.
    However, in the New GL view, the cost center is not filled for balance sheet accounts.
    Any solution?
    Regards,
    Julien

    HI,
    Cost center will never be filled for the Balance Sheet account. For Balance sheet account Profit Center is required to be filled.
    Don't be afraid this is the fundamental practice across the globe. Cost centers will be filled in only Expense account.
    Exception to above rule is Asset master will recieve cost center because this will help in determining asset per department.
    Regards,
    Chintan Joshi.

  • How to alter the materialized view defintion with -- For update clause

    My db version is 9.2.0.3
    My orginal materialized view difination does not have "for update " clause.
    how can i alter the mview defination to inclused and exclude the "for update" clause.
    I dont want to drop and recreate the mview with for update clause. But I what to change the existing definition.
    Please suggest.
    Thanks
    Naveen.

    I already have the view definition in place. I want to change the exising defination, by adding the "for update " clause. Is it possible with any " alter mview ... " syntax.
    Below is my existing syntax. I don't what to drop and recreate. Just want to alter the existing definition , with for update clause.
    create materialized view test
    pctfree 0
    tablespace DATA storage (pctincrease 0)
    build immediate refresh start with sysdate next (trunc(sysdate+1) +1/24)
    with primary key
    disable query rewrite
    as select * from test@isource;
    Please suggest!
    Thanks
    Naveen
    Edited by: user12096071 on Apr 8, 2010 2:56 PM

  • Updated Adobe Content Viewer for Windows Store now available

    The latest release of Adobe Content Viewer for Windows Store is now available for download. Note that depending on your location it could take up to 24 hours for the updated viewer to appear in the store. If you already have a previous version of the viewer installed Windows will auto-update the app for you within the next 24-48 hours. The new version displays 3.4.3.5 in the About pane.
    This update includes the following new functionality:
    Renditions
    Pan and zoom overlay
    For the complete list of supported features see our help topic on the Windows viewer. Enjoy, and don’t forget to leave feedback on the app in the store! 
    The Windows Store viewer team

    Great
    Creating tiles for Win app just now, i would appreciate some short handbook for designing of tiles with examples, i'm little bit lost now (where i should put text and so on).
    Thanks!

  • "ORA-01762: vopdrv: view query block not in FROM" while using LOG ERRORS INTO  feature for Update/Delete

    Hi
    Ours is VPD database in 11GR2. We're using "LOG ERRORS INTO " feature to track list of records violating constraints.
    For Inserts it is working as expected but for Updates/Deletes it is throwing mis. ORA- errors. "ORA-01762: vopdrv: view query block not in FROM"
    We dint find any clue when searched in net.
    Could someone help us here? Is there any limitation with "LOG ERRORS INTO" ?
    Below are the steps we're executing
    EXEC DBMS_ERRLOG.CREATE_ERROR_LOG(
    dml_table_name => 'EMP',
    err_log_table_name => 'ERR_EMP'
    > DESC EMP
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    ENAME                                              VARCHAR2(10)
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                             NUMBER(2)
    INSERT INTO EMP VALUES('1','Test','@' /* generates Ora */,2,'2); -- ERR_EMP populated
    UPDATE EMP set SAL='@'
    where EMPNO='1' -- Throwing ORA-01762: vopdrv: view query block not in FROM
    Could someone help us?

    Hi
    Ours is VPD database in 11GR2. We're using "LOG ERRORS INTO " feature to track list of records violating constraints.
    For Inserts it is working as expected but for Updates/Deletes it is throwing mis. ORA- errors. "ORA-01762: vopdrv: view query block not in FROM"
    We dint find any clue when searched in net.
    Could someone help us here? Is there any limitation with "LOG ERRORS INTO" ?
    Below are the steps we're executing
    EXEC DBMS_ERRLOG.CREATE_ERROR_LOG(
    dml_table_name => 'EMP',
    err_log_table_name => 'ERR_EMP'
    > DESC EMP
    Name                                      Null?    Type
    EMPNO                                     NOT NULL NUMBER(4)
    ENAME                                              VARCHAR2(10)
    SAL                                                NUMBER(7,2)
    COMM                                               NUMBER(7,2)
    DEPTNO                                             NUMBER(2)
    INSERT INTO EMP VALUES('1','Test','@' /* generates Ora */,2,'2); -- ERR_EMP populated
    UPDATE EMP set SAL='@'
    where EMPNO='1' -- Throwing ORA-01762: vopdrv: view query block not in FROM
    Could someone help us?

  • Updatable View issues:  cannot select FOR UPDATE from view with DI

    Hi All,
    I have a simple view XY and an instead of trigger on that to insert data into one table which is used in the my view. When I do insert statement on view XY it is working fine from sql but when i used same thing with page process of " Process Row of XY Automatic Row Processing (DML) " i am getting following error. I am using APEX 3.0 . Please help me.
    ORA-20001: Error in DML: p_rowid=xxxx, p_alt_rowid=abc, p_rowid2=, p_alt_rowid2=. ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    Thanks

    James,
    are you already on 3.0.1.00.07 or 3.0.1.00.08? Have a look at the release notes, it says something about a bug fix for some occurrences of ORA-02014.
    Also have a look at the new substitution value/item FSP_DML_LOCK_ROW which turns locking off if you set it to FALSE. See http://www.oracle.com/technology/products/database/application_express/html/3.0.1_readme.html#CHDIDIAF and also http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/advnc.htm#BCGFDAIJ
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • How do I view data being locked by select for update

    We've implemented a test appointment booking system. The application does explicit row locking (e.g. select * from calendar where ..... for update nowait;)
    I need to view which database SID and USER has which records locked.
    I cannot find such SQL on google or AskTom.
    Currently, I can figureout which records are locked with the following PL/SQL.
    set serveroutput on
    declare id varchar2(20);
    begin
    for r in (select rowid,a.* from CALENDAR a) loop
    begin
    select rowid into id from CALENDAR where rowid=r.rowid for update nowait;
    exception
    when others then
    dbms_output.put_line(r.rowid);
    end;
    rollback;
    end loop;
    rollback;
    end;
    Two questons:
    1. How do I find out which database user and SID is locking each record.
    2. Is there a more elegant way of instead of boing the above PL/SQL.
    Please help?

    Oracle is not maintaining a list of all row locks. I've been told that other RDBMS's do have such a lock manager. Oracle doesn't because it hinders scalability. The fact that a row is locked is written in the block header itself. And you can only see that a row is locked by trying to lock it yourself. If it gives an ORA-00054, the row is locked.
    However, I've seldom come across a situation where I need to know which rows are locked. So what's the real reason behind your requirement "I need to view which database SID and USER has which records locked.". Why is this information important to you?
    Regards,
    Rob.
    PS: About your code: you don't want to catch the OTHERS exception, just the ORA-00054.

  • Issue with iTunes view for podcasts with the latest iOS update (for my Macbook Air, Sept 21, 2013)

    I just got the latest update for iOS for my Macbook Air - and now all of my previously deleted podcast episodes are showing up as available for download from the cloud - which is clogging up my iTunes display.  How can I get these previously downloaded, listened to, and deleted episodes off of my podcast view/list?

    "Not only did it download a new version of itunes, but it also downloaded MS Word updates, and other software that required updating."
    MS Word is not an Apple product so it could not've downloaded with all the Apple software updates.
    "I clicked File > Check for Updates"
    What program were you running to do that?
    In any case boot from your OS installer disk and run Repair Disk from Disk Uility.

  • HT1657 I rented a few movies and downloaded them to my computer.  Before they had been viewed, I updated my iTunes software and the movies were no longer in my library.  How can I access the movies as I have already paid for them?

    I rented a few movies and downloaded them to my computer.  Before they had been viewed, I updated my iTunes software and the movies were no longer in my library.  How can I access the movies as I have already paid for them?

    Try here >  iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    iCloud doesn't support movies...
    iCloud backs up your:
    Purchased music, TV shows, apps, and books
    Photos and video in the Camera Roll
    Device settings
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    From here >  Apple - iCloud - Store and back up your content in iCloud.

  • Select or Select....for update nowait (data write concurrency issue)

    Hello everyone,
    I am working on a jsp/servlet project now, and got questions about which is the better way to deal with concurrent writing issues.
    The whole senario is described as following:
    First each user is viewing his own list of several records, and each record has a hyperlink through which user can modify it. After user clicks that link, there will be a popup window pre-populated with the values of that record, then user can do the modifications. After he is done, he can either click "Save " to save the change or "Cancel" to cancel it.
    Method1---This is the method I am using right now.
    I did not do any special synchronization measures, so if user 1 and user2 click the link of same record, they will modify the record
    at the same time, then whose updates will take effect depends on who submits the request later. If user1 submitted first, then user 2, user1
    will not see his updates. I know with this method, we will have the problem of "Lost Updates", but this is the simplest and efficient way to handle this issue.
    Method2--This is the method I am hesitating.
    I am considering to use "Select....for update nowait " to lock a record when user1 has selected one record and intended to modify it. If user2 wanted to modify the same record, he is not allowed. ( by catching the sql exception.)But the issue I am concerned about is because the "select .. For update" action and "Update action" are not so consecutive as many transaction examples described. There could be a
    big interval between " select " and "update" actions. You could not predict user's behavior, maybe after he open the popup window, it took him a while to make up his decision, or even worse, he was interrupted by other things and went away for the whole morning?.Then the lock is just held until he releases it.
    And another issue is if he clicks "cancel" to cancel his work, if I use method1, I don't need to interact with server-side at all, but if user method2, I still need to interact with the server to release the lock.
    Can someone give me some advice ? What do you do to deal with similar situation? If I did not make clear of the question, please let me know.
    Thanks in advance !
    Rachel

    Hi Rachel,
    Congratulation, you have found a way to overcome your programming business logic.
    Have you ever consider that the solution of using CachedRowset concept yet to be included in j2se 1.5 tiger next year too prove workable under the scenario , whereby you can disconnect from the database after you have execute your query and reconnect again if you have to do transactional activity later, so that the loading overhead as well as the data pooling activity could be well balanced off.
    Although rowset is still not an official API now, but its potential to me is worth consideration.
    I have written a simple but crude cut JSP programme posted on this forum under the heading "Interesting CachedRowset JSP code to share " to demonstrate the concept of CachedRowset and hoping that the Java guru or the developer could provide feedback on how to imporve on the programming logic or methodology.
    Thanks!!

  • Create a Maintenance view for table T500P

    Hi Experts,
    We have a requirement where customer want an additional field in table T500P and for the same a custom maintenanve view has to be created.Moreover, If there is any update insert or change in the ZView/Ztable the same should be reflected in standard table T500P.
    Steps already taken :-
    We have created a ztable (copy of T500P ) and add the required custom field to it.
    We have also copied the view i.e V_T500P to our custom view and also use base table as T500P .
    We also create a foreign key for PERSA in Ztable and use T500P as check table for that with cardinality 1:1.
    To update the MOLGA & BUKRS field data in ztable we have set both the field as a primary key & create a foreign key with check table T500L & T001 & cardianality as 1:CN for key fields.
    In custom maintenance view we have set the realtionship of ztable t500l & t001 with the base table T500P.
    Now, if we are trying to maintain the view only T500P table is getting updated and Ztable is updated with only PERSA value.
    Please provide some directions for the resolution of this issue.
    Thanks,
    Pooja Goel.

    Scheduler007 --
    The view you selected by clicking File > Options > Project View is the default view for every new project you create from a blank project template.  This is a global option, so setting it from the checked out Enterprise Global file serves no purpose. 
    When you select a view as your default view, you will see that view applied to the blank project that is opened when you launch Microsoft Project 2010, and you will see it applied if you create new blank projects.  If you create enterprise templates for
    people to use in your organization, you should simply apply the view to the template that you want as the default so that users will see this view immediately when they create a new project from the template.  In addition, if you apply a view to an open
    project, close and check in the project, and then reopen the project, you will see the last view applied in that project (as Guillaume correctly points out).
    Beyond this, there is no method possible for the Project Server administrator to specify a default view for the Microsoft Project application used by the project managers in your organization.  This is an option each PM must set.  Hope this helps.
    Dale A. Howard [MVP]

  • [ADF Help] How to create a view for multiple tables

    Hi,
    I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
    ex:
    Table A has these fields: ID, Name
    Table B has these fields: ID, Address
    A.ID and B.ID are primary keys.
    B.ID has FK relationship with A.ID
    (basically, these tables have one-to-one relation)
    I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
    So I can execute C,R,U,D for both tables.
    I create these tables in DB, and create entity objects for these tables.
    So there are 2 entity objects and 1 association.
    Then I create a view object based on B and add fields of A into the view:
    If the association is not a "Composition Association",
    when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
    If the association is a "Composition Association", and click the insert button, I will get
    "oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
    If I create a view object based on A and add filed of B into the view:
    When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
    So... how can I create a view for multiple tables correctly?
    Thanks for any advices!
    Here are some pictures about my problem, if there is any unclear point, please let me know.
    http://leonjava.blogspot.com/2009_10_01_archive.html
    (A is Prod, B is CpuSocket)
    Edited by: user8093176 on Oct 25, 2009 12:29 AM

    Hi Branislav,
    Thanks, but the result is same ....
    In the step 2 of creating view object, I can select entity objects to be added in to the view.
    If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
    When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
    If I select B first, and then select A in crating view object, the result is similar ...
    Thanks for any further suggestion.
    Leon

Maybe you are looking for