Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. SELECT * FROM 4am_comsysn.ageperso RIGHT JOIN (SELECT 4am_traficon.ts_horas.coduser,
  2. COUNT(DISTINCT 4am_traficon.ts_horas.codorden) AS orden,
  3. COUNT( 4am_traficon.ts_horas.corre) AS core,
  4. SUM( 4am_traficon.ts_horas.tothoras) AS horas, 4am_traficon.ts_horas.fecha
  5. FROM 4am_traficon.ts_horas
  6. GROUP BY 4am_traficon.ts_horas.coduser) tt_ts_horas ON 4am_comsysn.ageperso.codper = tt_ts_horas.coduser;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement