You are on page 1of 1

PERIODO DE DIGITACIÒN

select
id_my_digitador,concat(year(ate_my_fecate),lpad(month(ate_my_fecate),2,'0')),
count(*) from fac_atencion_mysql where ate_my_periodo = '2020' and ate_my_mes =
'01' and id_my_ppdd = '853' GROUP BY id_my_digitador,month(ate_my_fecate) ORDER BY
1,2 asc

DIAS DE DIGITACIÒN
select id_my_digitador, DATEDIFF(ate_my_feccrea,ate_my_fecate), count(*) from
fac_atencion_mysql WHERE id_my_ppdd = '853' and ate_my_periodo = '2020' and
ate_my_mes = '01' GROUP BY id_my_digitador, DATEDIFF(ate_my_feccrea,ate_my_fecate)

LISTADO DE PAQUETES
SELECT DATE_FORMAT(paq_fec,'%Y-%m-%d')as 'paq_fec', paq_resp FROM dim_paquetes
WHERE YEAR(paq_fec) = '2020' and MONTH(paq_fec) = '07' ORDER BY paq_fec DESC

select DATEDIFF(ate_my_feccrea,ate_my_fecate), count(*) from fac_atencion_mysql


WHERE id_my_ppdd = '853' and ate_my_periodo = '2020' and ate_my_mes = '01' GROUP BY
DATEDIFF(ate_my_feccrea,ate_my_fecate)

https://dev.mysql.com/downloads/mysql/5.7.html

http://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.31-win32.msi

https://mirrors.cloud.tencent.com/mysql/downloads/MySQL-5.7/

You might also like