MySQL Forums
Forum List  »  Newbie

Re: Join Statement with math operation
Posted by: stanley sioteco
Date: August 05, 2010 05:56AM

ok sir let me give you an example

name item amount kind
A Room Ch 9500 2
A Beer 50 6
B Room Ch 5200 2
A Deposit 9000 1

the query above will give me the following result

name Balance
A 550
B Null

i need this result sir

name Balance
A 550
B 5200

thanks!

Options: ReplyQuote


Subject
Written By
Posted
Re: Join Statement with math operation
August 05, 2010 05:56AM


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.