Is there a way to combine these two MySQL queries into a single statement?
I'm trying to do some dynamic variable calculations on a select and reference those variables in the where statement. After searching the following is as close as I've been able to get thanks to Jonas's post here MySQL user-defined variable…