MySQL Forums
Forum List  »  Newbie

Re: Group Balance Results, Then Count All the Results
Posted by: Peter Brawley
Date: September 29, 2015 04:13PM

> You don't have to put AS before using an alias?

The manual is your friend. Its page on Select shows [as] in square brackets, which means it's optional.

If you just want the number of different credit_limit values ...

select count(*) from select distinct credit_limit from customer;

Options: ReplyQuote


Subject
Written By
Posted
Re: Group Balance Results, Then Count All the Results
September 29, 2015 04:13PM


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.