Displaying 2 results from an estimated 2 matches for "demograp".
Did you mean:
demograc
2003 Aug 20
1
query on converting survey data from one structure to another
...tion is stored in a
file called "EA-HM-HH.TXT" where EA is the enumeration area number, HM is
the homestead number and HH is the household number. Within this file the
data is stored as follows,
###### file="5677-001-001.TXT" ######
EAnumber=5677
HMnumber=001
HHnumber=001
# Demographics section
Dserial=01 #first person in household
Dage=56
Dsex=1
Dserial=02 #second person in household
Dage=44
Dsex=2
Dserial=03 #second person in household
Dage=7
Dsex=2
# Agricultural inputs section
Amaize=200
Apumpkins=50
###### end of file ########
Note that in the demograpics section t...
2006 Feb 24
0
preloading children of child rows
...the admin app for an existing
java webapp. For this reason, I am constrained by the current database
structure, which does not by any means conform to the ideal rails
defaults.
Anyway, I have the following models:
class Provider...
belongs_to: login
class Login...
has_and_belongs_to_many :demographics
class Demograpics...
...
Everyone has a login. Everyone has one demographic row (why is it habtm
you ask? just bad database design). But not all logins are
providers--there are other kinds of users.
What I want to do is create a query with find() that will preload all
login and demograp...