I\'m analysing a rather horrible legacy database/codebase, trying to reduce server load by combining queries into joins (including an email alert cron job that typically inv
I've found something usefull in this question MySQL concat() to create column names to be used in a query? . I think that this can be one of the solutions.