MySQL Forums
Forum List  »  Quality Assurance

Re: problem with alias column field
Posted by: Sudianto Teja
Date: April 07, 2008 07:48PM

i've solved it. it seems we must use user variables.

SELECT net,
tax_rate,
@tax:=(net / tax_rate) AS tax,
net + @tax AS gross
FROM items

Options: ReplyQuote


Subject
Views
Written By
Posted
10473
April 06, 2008 10:21PM
Re: problem with alias column field
3450
April 07, 2008 07:48PM


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.