Displaying 2 results from an estimated 2 matches for "demograpics".
Did you mean:
demographics
2003 Aug 20
1
query on converting survey data from one structure to another
...number=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 there may only be less than 3 or more
people in some households. I would like to create a file for the
demographics section which is as follows
EAnumber|HMnumber|HHnumber|Dserial|Dage|Dsex
5677 001 001 056 1
5677 001 001 044 2
5677 001 001 007 2
and for the agricultural inputs I would l...
2006 Feb 24
0
preloading children of child rows
...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 demographic information associa...