From: Dan Langille Date: Sat, 17 Jul 2004 15:49:39 +0000 (+0000) Subject: Not all databases allow you to refer to field in an "AS field" clause. X-Git-Tag: Release-1.35.1~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=486e1bf7b537c3d5dac22e967c48398da4a97ebc;p=bacula%2Frescue Not all databases allow you to refer to field in an "AS field" clause. So use count(*) instead of the field name in selects. Use DISTINCT intead of GROUP BY, because that's what we really want because this won't work on non-MySQL. ---