Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6547431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:49:48+00:00 2026-05-25T11:49:48+00:00

i have two table Table 1:Master Table 2: Slave Master Table Definition Slave Table

  • 0

i have two table

Table 1:Master
Table 2: Slave

Master Table Definition                       Slave Table Definition
mID--label-----ParentID                          ID-----Label----mID----Amount
1---A----------Null                               1------X--------1------20
2---B-----------1                                 2------Y--------1------30
3---C-----------1                                 3------Z--------2------20
4---D-----------2                                 4------X1-------4------50
5---E-----------4                                 5------X2-------5------100

Relation From Master table                     Relation from slave table
A=B+C                                          A=X+Y
B=D                                            B=Z
D=E                                            D=X1
                                               E=X2

Now,
How to sum up the tree of a master with slave table
A=(E+D+B)+C
therefore, A=sum of the value of(X2+X1+Z)
B=(D+E)
therefore, B=X1+X2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:49:48+00:00Added an answer on May 25, 2026 at 11:49 am
    Master Table Definition
    
    mID--label-----ParentID
    1---A----------Null
    2---B-----------1
    3---C-----------1
    4---D-----------2
    5---E-----------4
    
    i create another table to keep relation
    
    id-----childID----parentID
    1--------2-----------1
    2--------3-----------1
    3--------4-----------2
    4--------4-----------1
    5--------5-----------4
    6--------5-----------2
    7--------5-----------1
    
    in this way i solved...........
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two InnoDB tables: CREATE TABLE master( id INTEGER UNSIGNED NOT NULL auto_increment
I've two master tables Org & Item and then there's an OrgItem table.I have
so I have two tables. They are pictured below. I have a master table
I have two tables (Master, Responses) I need use the Master_Id field from the
I have two tables as shown below The master Table ID keyword_tags ----------- ---------------------------------------------
I have two large tables -Master table A: 1.4million rows -Detail table B: 9
I have two tables: Master Table Assets Table -AssetNo- -AssetNo- AssetNo is the PK,
I have two master tables CompanyMaster , ActivityMaster for a child table CompanyActivities ActivityMaster
I have two table like this table_CN (_id, name, phone, favorite, title) table_EN (_id,
I have two table emptable1(empid,status) emptable2(empid,week) i want to select all the empid whose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.