daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT tbCodes.code, tbCodes.dni AS dni, nombre, apellidos, direccion, piso, numero, puerta, codigopostal, poblacion, provincia, movil, LOWER(email) AS email, fecha
  2.  
  3. FROM tbCodes, tbParticipantes, tbProvincias
  4.  
  5. WHERE tbParticipantes.idprovincia = tbProvincias.idprovincia AND
  6.       tbParticipantes.dni = tbCodes.dni AND
  7.       LENGTH(dni) > 0 AND
  8.       tbCodes.dni NOT IN (SELECT dni FROM tbPremiados)
  9.      
  10. ORDER BY dni, fecha ASC
RAW Paste Data
Top