MySQL Forums
Forum List  »  InnoDB

Re: 3 Table Query
Posted by: O'henry Henry
Date: July 11, 2005 05:39AM

Table C
AccountCode
100
101
102
103
104
105


Table A
Tcode--ACode --Amount
1---------100------100.00
1---------101 -----130.00
1---------102------150.00
0---------103------160.00
0---------104------200.00
0---------105------300.00

Table B
Tcode--ACode--Amount
0-------- 100------2100.00
0---------101-----4100.00
0---------102-----1100.00
1---------103-----3100.00
1---------104-----4100.00
1---------105-----5100.00



Filter out transactioncode = 0

---------------A --------------------------- B ------------------------ C
Tcode--ACode --Amount--- Tcode--ACode--Amount -----AccountCode
nul-------100---------nul-------- 0------ 100-----2100.00-------100
nul-------101 --------nul---------0-------101----4100.00--------101
nul-------102---------nul---------0-------102----1100.00--------102
0---------103------160.00-------nul-----103-------nul-----------103
0---------104------200.00-------nul-----104-------nul-----------104
0---------105------300.00-------nul-----105-------nul-----------105

Can this be generated Guys on Sql as you can see all records from Table C r displayed except on Table b and A
Theres null value because i'd made a filter that only Tcode=0 should be displayed.

Thanks Guys for your help it meant a lot to us!!!

God Bless...

Options: ReplyQuote


Subject
Views
Written By
Posted
2716
July 11, 2005 02:13AM
Re: 3 Table Query
1962
July 11, 2005 05:39AM
1926
July 11, 2005 06:01PM
1892
July 11, 2005 06:35PM
1959
July 11, 2005 06:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.