SELECT SUM(IF(A.land_size IS NULL, 0 , A.land_size)) existencia, COUNT(*) existenciaC,
SUM(IF(A.land_size IS NULL, 0 , IF(A.land_condition = 'Fully Developed' OR A.land_condition = 'Fully Developer', A.land_size, 0))) f_deleveloped,
SUM(IF(A.land_size IS NULL, 0 , IF(A.land_condition = 'Fully Developed' OR A.land_condition = 'Fully Developer', 1, 0))) f_delevelopedC,
SUM(IF(A.land_size IS NULL, 0 , IF(A.land_condition = 'Undeveloped', A.land_size, 0))) undeveloped,
SUM(IF(A.land_size IS NULL, 0 , IF(A.land_condition = 'Undeveloped', 1, 0))) undevelopedC
FROM proy_land_available A LEFT JOIN proy_industrial_park E ON A.industrial_park = E.id
LEFT JOIN proy_developer G ON A.owner = G.id LEFT JOIN proy_developer H ON A.developer = H.id LEFT JOIN proy_categoria B ON A.market = B.id LEFT JOIN proy_categoria C ON A.sub_market = C.id
LEFT JOIN proy_catalogo_detalle D ON A.region = D.id WHERE 1=1
Exisiting land site
34,522 HA
Land fully developed
9,145 HA
Land undeveloped
14,696 HA

88,005 (SF)
Class A

218,003 (SF)
Class A

86,111 (SF)
Class B

60,248 (SF)
Class C

67,502 (SF)
Class B

131,665 (SF)
Class A

44,996 (SF)
Class A

49,439 (SF)
Class A