Best professional ceramic coating paint stripper

The best professional ceramic coating paint stripper is the 3M Accuspray™ Paint Stripper Plus. This product is designed to strip off multiple layers of paint, lacquer, enamel, and urethane coatings…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Select Clause References to Group Aggregate Function Results

Dear MySQL development team, please add support for SELECT clause references to group aggregate function results. This would greatly improve SQL statement readability.

Here is an example of what I’d like to be able to do:

In MySQL 5.7, running the above statement returns the following error message:

Of course, I can work around this by using a sub-query. Or, I can simply write my SUM expression twice, like this:

While the above code works, it gets really messy when your group aggregate function is complicated.

So, while I am eternally grateful for the years of hard work that has been put into MySQL (a tool I use every single day), I am putting my request out into the world.

Add a comment

Related posts:

SolarCoin joins Climate Chain Coalition

During the One Planet Summit on December 12, 2017 in Paris, France (on the 2nd anniversary of the Paris Agreement), a multi-stakeholder group of 25 organizations working on distributed ledger…

A Python solution to run Query in Google Cloud Dataproc using API and return back query results

This article was originally posted in Big Data Daily, and can also be found on Linkedin. See Git for source code. In some situations that we need to run query in Google Cloud Dataproc from local and…

The Importance of Owning Your Identity

Later in life you start to become more comfortable shedding your social programming, you can begin to own your identity. This is the version of you that you prefer.