Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. select cast((100/count(id))*(count(case when estado="Realizado" then 1 end)) AS INT) as avance from tareas where idactividad in (select id from actividades where idproyecto=4) GROUP by idactividad
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement