$ 0 0 The SQL Engine will optimize that into a single instruction.Remove the outer COUNT and it will probably fail.