SQL How to join multiplue columns with same name to one column

Posted by Choi Shun Chi on Stack Overflow See other posts from Stack Overflow or by Choi Shun Chi
Published on 2012-12-07T05:00:39Z Indexed on 2012/12/07 5:03 UTC
Read the original article Hit count: 278

Filed under:
|

There is a super class

  • account {User, TYPE}

and subclasses

  • saving{User, ID, balance,TYPE,interest,curency_TYPE}
  • time{User,ID,balance,TYPE,interest,curency_TYPE,start_date,due_date,period}
  • fore{User,ID,balance,interest,curency_TYPE}

User and TYPE is the primary key of account and foreign key of three subclasses ID is primary key of three subclasses

how to make a list of showing all IDs in one column?Also the same as balance and TYPE meet the problem

I considered a.ID as saving, b.ID as time but it showing them separately

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql