Created
May 16, 2011 19:29
-
-
Save juque/975145 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (SELECT count( * ) -1 as count , a.rut_int,a.rut2_int,a.apa_int,a.nom_int,a.ama_int,a.com_int,a.ciu_int,a.fon_int,a.dir_int,a.mail1_int,a.mail2_int FROM integrantes a LEFT OUTER JOIN turnos_sol b ON b.rut_tursol=a.rut2_int where a.rut2_int LIKE '%%' AND DATE_FORMAT(b.fec_tursol,'%Y-%m-%d') >= '2011-04-15' AND DATE_FORMAT(b.fec_tursol,'%Y-%m-%d') <= '2011-05-15' and a.estado_int=1 GROUP BY a.rut2_int,a.rut2_int,a.apa_int,a.nom_int,a.ama_int,a.com_int,a.ciu_int,a.fon_int,a.dir_int,a.mail1_int,a.mail2_int ORDER BY count(*) asc limit 10); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment