Advertisement
NelsonGG

Untitled

Jul 18th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.62 KB | None | 0 0
  1. #Cantidad por día de 'Se envia service'
  2. SELECT xmmdd , (COUNT(*)) AS registros FROM pruebadb WHERE  tabulacion4 = 'Se envia service' GROUP BY xmmdd ORDER BY xmmdd DESC;
  3.  
  4. #Cantidad total de 'Se envia service'
  5. SELECT (COUNT(*)) AS registros FROM pruebadb WHERE  tabulacion4 = 'Se envia service' ORDER BY xmmdd DESC;
  6.  
  7. #Detalle de cada cosa por día
  8. SELECT tabulacion1, tabulacion2, tabulacion3, xmmdd FROM pruebadb WHERE tabulacion4 = 'Se envia service' ORDER BY xmmdd DESC;
  9.  
  10. #Detalle por día específico
  11. SELECT tabulacion1, tabulacion2, tabulacion3 FROM pruebadb WHERE tabulacion4 = 'Se envia service' AND xmmdd = '618';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement