Ver originalCREATE VIEW v_subquery AS select n.id_nse,m.id_sitio,m.id_sitio from tbl_monitoreointernet mINNER JOIN tbl_internet i ON (m.id_sitio=i.id_sitio)INNER JOIN cat_nse n ON (i.id_nse=n.id_nse)
Ver originalSelect DISTINCT(v.id_monitoreo) as id_monitoreo, (v.id_sitio) as id_sitio from v_query AS vwhere v.id_monitoreo=5;