01.01.2015 Views

Módulo de Condiciones Socioeconómicas de la ENIGH 2008 ... - Inegi

Módulo de Condiciones Socioeconómicas de la ENIGH 2008 ... - Inegi

Módulo de Condiciones Socioeconómicas de la ENIGH 2008 ... - Inegi

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ejemplo 1: Calcu<strong>la</strong>r el total <strong>de</strong> hogares muéstrales y expandidos.<br />

USE " C:\MCS_<strong>2008</strong>\hogares.dbf" SHARED<br />

SELECT COUNT(Folioviv+foliohog) AS HogMues, SUM(Factor) AS HogExp FROM Hogares<br />

Ejemplo 2: Calcu<strong>la</strong>r el total <strong>de</strong> hogares, muéstrales y expandidos, por tamaño <strong>de</strong> <strong>la</strong> localidad.<br />

De acuerdo a <strong>la</strong> lista <strong>de</strong> variables <strong>de</strong> <strong>la</strong> tab<strong>la</strong> <strong>de</strong> HOGARES utilizamos <strong>la</strong> variable <strong>de</strong> ESTRATO para agrupar<br />

por tamaño <strong>de</strong> <strong>la</strong> localidad.<br />

USE " C:\MCS_<strong>2008</strong>\hogares.dbf" SHARED<br />

SELECT Estrato, COUNT(Folioviv+foliohog) AS HogMues, SUM(Factor) AS HogExp FROM Hogares GROUP BY<br />

Estrato<br />

INEGI. <strong>Módulo</strong> <strong>de</strong> <strong>Condiciones</strong> <strong>Socioeconómicas</strong> <strong>de</strong> <strong>la</strong> <strong>ENIGH</strong> <strong>2008</strong>. Conociendo <strong>la</strong> base <strong>de</strong> datos<br />

Ejemplo 3: Calcu<strong>la</strong>r el total <strong>de</strong> viviendas en el estado <strong>de</strong> Sonora (estado #26 <strong>de</strong> acuerdo al catálogo <strong>de</strong> códigos),<br />

muéstrales y expandidos.<br />

USE " C:\MCS_<strong>2008</strong>\hogares.dbf" SHARED<br />

SELECT COUNT(Folioviv) AS HogMues, SUM(Factor) AS HogExp FROM Hogares WHERE LIKE("26*", Folioviv)<br />

Ejemplo 4: Calcu<strong>la</strong>r el total <strong>de</strong> pob<strong>la</strong>ción muestral y expandida, en este ejemplo se utilizan dos tab<strong>la</strong>s.<br />

USE " C:\MCS_<strong>2008</strong>\hogares.dbf" SHARED<br />

USE " C:\MCS_<strong>2008</strong>\pob<strong>la</strong>cion.dbf" SHARED<br />

SELECT COUNT(a.Folioviv) AS PobMues, SUM(Factor) AS PobExp FROM Pob<strong>la</strong>cion as a, Hogares as b Where<br />

a.folioviv = b.folioviv AND a.foliohog = b.foliohog AND a.proyecto = b.proyecto<br />

13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!