Re: Display Parent Accounts with Child Accounts

I am creating an Accounts Application and whenever the User query for particular Account Transactions, that Account's Parent Accounts must also return.
Here is the DML.
CREATE TABLE MYACC
(ACC_NO NUMBER(3), PARENTID NUMBER(3),
ACC_NAME VARCHAR2(20));
INSERT INTO MYACC VALUES(111,NULL,'ASSETS');
INSERT INTO MYACC VALUES(112,111,'CURRENT ASSETS');
INSERT INTO MYACC VALUES(113,112,'RECEIVABLES');
INSERT INTO MYACC VALUES(114,111,'FIXED ASSETS');
INSERT INTO MYACC VALUES(115,113,'MACHINERY');
CREATE TABLE MYTRANS
(TRANS_DATE DATE, ACC_NO NUMBER(3),
BRANCH NUMBER(1),TRANS_AMT NUMBER(10));
INSERT INTO MYTRANS VALUES('01-JUL-2006',113,1,10000);
INSERT INTO MYTRANS VALUES('01-AUG-2006',113,1,11000);
INSERT INTO MYTRANS VALUES('01-SEP-2006',113,2,12000);
INSERT INTO MYTRANS VALUES('01-OCT-2006',113,3,13000);
INSERT INTO MYTRANS VALUES('01-NOV-2006',115,3,12100);
INSERT INTO MYTRANS VALUES('01-DEC-2006',115,3,13200);
INSERT INTO MYTRANS VALUES('01-JAN-2007',115,3,15400);
INSERT INTO MYTRANS VALUES('01-FEB-2007',115,3,13000);
If I query for Branch No. 3,
and Trans_Date between 1st July 2006 to 31st Dec 2006
following should be displayed.
Branch     Account          Trans_Date     Trans_Amt
3     Assets     
3     Current Assets     
3     Receivables     01-OCT-2006     13100     
3     Fixed Assets
3     Machinery     01-NOV-2006     12100     
3     Machinery     01-DEC-2006     13200
If I query for Branch No. 3 and Account No. 115
following should be displayed.
Branch     Account          Trans_Date Trans_Amt
3     Assets     
3     Fixed Assets
3     Machinery     01-NOV-2006     12100     
3     Machinery     01-DEC-2006     13200
Any idea please ?
Best Regards,
Luqman

Dinamic select for find the children:
          select *
          from myacc
          start with acc_no = &Code
          connect by prior myacc.acc_no = myacc.parentid

Similar Messages

  • I can't make my childs account a child account.

      Is it possible When using Windows 10 Pro Technical Preview Evaluation copy Build 10041 I'm unable to make my child's account a child account. I use Microsoft Family Safety and unless I can make my child's account an actual child account, I will
    be unable to monitor their account.  I know how to do this on Windows 8.1., Am I doing something wrong, or is this just not ready in Windows 10?

    On Sat, 11 Apr 2015 01:14:22 +0000, jds226 wrote:
      Is it possible When using Windows 10 Pro Technical Preview Evaluation copy Build 10041
    This forum, as per the name, is for Windows 10 Phone issues. Please repost
    your question to one of the Windows 10 for PCs/tablets forums.
    Paul Adare - FIM CM MVP
    Now that we have all this useful information, it would be nice to be able
    to do something with it. (Actually, it can be emotionally fulfilling just
    to get information. This is usually only true, however, if you have the
    social life of a kumquat.) -- UNIX Programmer's Manual

  • Unread email account with different accounts

    Hi,
    I have multiple accounts setup on my z10.
    Is there a way I can break the unread email count on the lockscreen and know how many unread emails are there in each account.
    Thanks!

    Duplicate:
    http://supportforums.blackberry.com/t5/BlackBerry-Z10/Unread-email-account-with-different-accounts/m...
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Cannot add friends in Game Center with child account

    I have two child accounts with their own iPads and unable to add friends in Game Center other than the family group owner.  All restrictions have been turned off in settings and Game Center profiles are setup as public and allow invites.  I would like to friend my two child accounts together so that they can play together.  Is there some restriction for child accounts in Game Center?

    Nevermind...after some more searching I found this, it worked!
    http://www.mac-forums.com/forums/os-x-operating-system/280166-mountain-lion-game -center-problem.html
    Scroll down until you see the instructions for the Terminal commands, and remember that you need to hit the control key to make the commands work, NOT the command key!

  • Now that we can share Itunes accounts, How can i converst my kids existing accounts to child accounts under my account?

    I want to convert my kids existing itunes accounts to sub accounts under the new family feature....is that possible?  I have added them to my family but they show up as adult accounts. I would like them to be child accounts.

    No method for that but you can keep changing the account from the iPhone and it won't delete the apps from the second account

  • How do I replace Admin account with transferred account?

    Just setup my new Imac. Used migration assistant to transfer via firewire my existing account from my Macbook. The transferred account shows up on my new Imac in accounts under "other accounts".
    HOW do I replace my Main User Account with my newly transferred Macbook account as I don't want both accounts; just the one I transferred to serve as the main account? The option to delete the main account in system preferences > accounts is greyed out.
    Thx.

    For new Macs, I usually try to quit the setup assistant as soon as it will let me.
    I define an initial account that has no personal information, and a user called "Master", or "Administrator", or something similar.
    This account is then the bare bones original account as set up by OSX, and I never change it.
    In this way, if an account becomes corrupt, I can always go back to this clean, unaltered account, and delete old (or add new) administrative accounts as necessary.
    This would work for your condition as well. Just keep the new imported account as your main user, and the original account setup when the machine was new becomes your "backup" Master.

  • Can I replace primary iCloud account with new account?

    Would like to replace my @me.com iCloud account with the e-mail address I have been using for the last 20 years. Can this be done?
    Can I save the contests of my @me.com iCloud account to the computer hard drive?
    Thank you,
    prb2712

    From the knowledgeable Roger Wilmut:
    You can't change the primary email address, the one you created when you opened an iCloud account (or if you migrated from MobileMe the address you log in with) other than by opening a completely new account.
    http://support.apple.com/kb/HT5621
    However you can create three 'email aliases' - these are extra addresses, not accounts, which deliver into the same inbox as the main address.
    http://help.apple.com/icloud/#mm6b1a490a
    It's actually quite a good idea to give out an alias address rather than the main one, since these can be easily changed should you get spammed.
    New addresses will be @icloud.com: at present not everyone's account has been updated to use the @icloud.com address and if yours hasn't you won't be able to create an alias until it has.

  • Control Account with Casflow account and cashflow relevent

    Hi !
    I use SAP 9.0 PL9 . There is 1 problem with Cashflow
    I setup 1 account in Chart Of Account:
    1. Control Account
    2. Cash Account
    3. Cashflow relevent
    I can't chose Primary form Items cashflow at Journal Entry. No way to record cashflow transaction with that account. How can  I solve this problem?
    Regards,
    Hong Bich

    Hi Gordon,
    Thanks for your reply, but I finally manage to find where the problem was. Somehow the "Allocation account" (aka Transfer account) automatically switched from common account to control account (this behavior has been reported in note 1305645). I checked in the backup I did before upgrading the DB and that same account was a common account, so my guess would be that it changed during the upgrade.
    Once you manage to uncheck the "Control account" checkbox, the problem is gone.
    Thanks again anyway,
    EB

  • Issue : Symbolic Account with GL accounts

    Dear Forum,
    I understand that :
    several wage type can go to 1 symbolic account ;
    1 wage type to several symbolic ;
    1 symbolic to 1 gl account ;
    several symbolic account to same gl account ;
    May I know what is the reason cannot have 1 symbolic account to several gl account (ignore the employee group)?
    Thanks
    Rgds

    Hi srina yaya,
    If you create one symbolic account to several GL Accounts that creates lot of problems to Accounts people while preparing the Balance Sheet for the year.
    Normally company people shows expenses on different heads... for example ... Salaries (GL account).  At the end of the year or quarter, the company accounts people show this munch of amount we have spend on Salaries in balance sheet.  That Salaries (GL) includes.. (Daily Salaries, Monthly Salaries, Hourly Salaries, Salaries to everybody.... (these are called Symbolic Accounts.. the accounts that are symbolic to Salaries GL account)..
    That is why we match several Symbolic Accounts to One GL Account.  I think now you get the point.
    Regards
    Venu Gopal

  • Family Sharing Issue: Problem with child account not having access to parents purchases.

    I created a family sharing network consisting of my me, my wife, and my 16 y/o son.  I can see/download my wife's purchases and she can see/download my purchases. I can also see/download my sons purchases.  My son can see my purchases, but when he attempts to download them he gets the error message "Unable to Download: To download shared content, your Family must have a valid payment method." 
    There is a valid payment method and the account and it was verified when sitting up my son's account for family sharing.  I'd note that my son is the only one in the family that doesn't have a payment method associated with his personal account. However, I don't think that's anrequirement to set up family sharing.
    Hopefully, this issue will be addressed quickly.

    KCWolfPck wrote:
    he gets the error message "Unable to Download: To download shared content, your Family must have a valid payment method." 
    Try the solution posted by jsnola here: Re: Family sharing valid payment.

  • ICloud child account - Can't log into Apple ID or iCloud with child account

    Nightmare!  Created three kids accounts.  Loaded the ID on iTouchs. 
    Then went to https://appleid.apple.com/account/home to change info... couldn't log in.
    I also couldn't log into iCloud with the new ID's.
    After a call to apple (no help) and thinking real hard (and wasting a day)....
    The reason is because when I entered the new ID into iTouch (the ID was orginally created on my Iphone)... I had restrictions turned on in the iTouch.
    I disabled all restrictions.  Waited a few minutes.  Then was able to log into both sites.
    Then put restrictions back on on the iTouch.  Still able to log into both sites.
    Apple failed to mention that small detail.
    Hope this helps someone else.
    PS. Apple told me that the kids id was not able to be used as an email? or log into iCloud? NOT!
    It has full rights as any other ID (other than purchases).

    TinaTucson wrote:
    I changed my Apple ID password (kept username the same) by logging into: http://appleid.apple.com.  Now I can't log into my Apple ID on my iPhone.
    Where are you trying to log into your AppleID on the iPhone?

  • Link Mac account with server account

    I haven't been able to find anything on this issue, thought I would post and see if anything comes up.  Before switching to 10.6 from 10.5, I had each Mac workstation's main user account paired with an XServe account in System Preferences - Accounts.  When we needed to share a volume from any station, we could just choose the share permissions from an automatically generated list of server accounts.  After upgrading to 10.6 (with clean installs, as there had been too many upgrades and migrations over time) we have lost the System Preference option to select a server account, so we have to enter those server accounts manually.
    Is this something that has changed from 10.5 to 10.6?
    I have tried creating new accounts, hoping the option would return, but no luck.  I still have the option on my Mac Pro but I installed over 10.5 (I know - asking for trouble).  Has anyone else found this problem?

    I guess you running a open directory on your server, have you paired the Mac's with the server, The new way do that is in account preferences/login option/join network account server.

  • How to connect  & display parent items to child items

    Hi,
    Can any body help me ,
    I have taken the pick list in PLD  that is  having child item , that child item ,i am trying to point Bill of material  item form which itself having child items I want to display that one .
    Thanks,
    Ruheena Tasneem.

    Hi Ruheena ,
    You have to use query or Crystal report to get that.  PLD has very limited function in SQL part.
    Thanks,
    Gordon

  • Deleting parent record with child instances

    Is there a way i can delete records from the database when i have one of the columns being used in other tables.
    Eg: m_id used in tables meter ( Primary key ) and period_meter( foreign key) and site_area_meter (foreign key). I want to delete record whose m_id is so and so...
    if not then any other idea to discard that parent , child records
    thanks in advance

    I was able to solve my problem by using the item tag to the Navigate Tree: Get Parent invoke node and then wiring through the item to the next item tag as needed.
    I attached a screen shot.
    Kenny
    Kenny
    Attachments:
    get items from tree control.gif ‏4 KB

  • Merge iTunes Store Account with MobileMe Account?

    If I try to change my UID to my MobileMe account ID in the iTunes Store, I get a message saying I can't, and that I need to re-sign-in using my MobileMe account ID. However, when I do this, none of the permissions or authorizations are attached to the new account and I need to authorize my purchases using the old account info.
    Is there any way to merge my old iTunes Store account into my MobileMe account?

    Click here and fill out the form.
    (33752)

Maybe you are looking for