Wednesday, 2 October 2019

when you make a calculated column in mysql and it can not be used in a where clause

This can easily be done using a  nested query as shown in the following snippet taken from https://stackoverflow.com/questions/16068662/calculated-column-in-where-clause-performance

SELECT a,b,c,d FROM 
(SELECT a,b,c,(a*b+c) AS d) AS tmp
WHERE d > n

No comments:

Post a Comment

what is a good PhD contribution?

When PhD candidates embark on their thesis journey, the first thing they will likely learn is that their research must be a “significant ori...