what about "select max(select sum(b) from db where dc=1 group by ba) from dual" ?
... where dual is a virtual table name used with Oracle... don't know if it exist in MySql
Water is not bad as long as it remains outside human body ;-)
not familiar with dual...but it didnt' work any way.
i have found a work around but i know there has to be an easier way. what i have currently is my query sorted on that field and then putting that data as a variable.
then...re-write the query to sort on the next field and so on.
after having asked here, it seems that "Dual" table is Oracle only. Did you try with an existing table name instead : ""select max(select sum(b) from db where dc=1 group by ba) from db" ?
Water is not bad as long as it remains outside human body ;-)
i am using mysql control center. here is the complete line returned:
[DataBase1] ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select sum(b) from db where dc=1 group by ba) from db
When I did that, it was quite simple : make a dump of your DB, install new version and then reimport the dump inside the new db.
Beware that protocols and connect strings may differ from one version and other.
By the way, got to go (6PM in France : work finished).
See you tomorow morning.
Water is not bad as long as it remains outside human body ;-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.