M
Mike Gramelspacher
Hello,
This query problem is a bit too much for me. Maybe someone else could look
at it
Marriages
---------
ApplicantName Text
FemaleIndicator Yes/No
SpouseName Text
ApplicantBirthDate Date/Time
SpouseBirthDate Date/Time
MarriageDate Date/Time
BookNo Number
PageNo Number
Current data (same column order as above):
Brown, John| |Jones, Mary|12-12-1900| |5-5-1922|15|348
Jones, Mary|x|Brown, John|11-11-1899| |5-5-1922|15|348
Result needed:
Brown, John| |Jones, Mary|12-12-1900|11-11-1899|5-5-1922|15|348
Jones, Mary|x|Brown, John|11-11-1899| |5-5-1922|15|348
The person who originally did this made two rows for each marriage. This is
extra work and only a small percentage of the total is finished. I want to
use only one row for each marriage and use a union query to get the second
record for the spouse. The original data did not have FemaleIndicator and
SpouseBirthDate colums. The name fields are no set up right, but I will fix
that later.
(MarriageDate,BookNo,PageNo) is unique for each marriage. Probably
(BookNo,PageNo) is unique.
Anyone have any ideas for solving this problem?
Mike Gramelspacher
Ferdinand, Indiana
This query problem is a bit too much for me. Maybe someone else could look
at it
Marriages
---------
ApplicantName Text
FemaleIndicator Yes/No
SpouseName Text
ApplicantBirthDate Date/Time
SpouseBirthDate Date/Time
MarriageDate Date/Time
BookNo Number
PageNo Number
Current data (same column order as above):
Brown, John| |Jones, Mary|12-12-1900| |5-5-1922|15|348
Jones, Mary|x|Brown, John|11-11-1899| |5-5-1922|15|348
Result needed:
Brown, John| |Jones, Mary|12-12-1900|11-11-1899|5-5-1922|15|348
Jones, Mary|x|Brown, John|11-11-1899| |5-5-1922|15|348
The person who originally did this made two rows for each marriage. This is
extra work and only a small percentage of the total is finished. I want to
use only one row for each marriage and use a union query to get the second
record for the spouse. The original data did not have FemaleIndicator and
SpouseBirthDate colums. The name fields are no set up right, but I will fix
that later.
(MarriageDate,BookNo,PageNo) is unique for each marriage. Probably
(BookNo,PageNo) is unique.
Anyone have any ideas for solving this problem?
Mike Gramelspacher
Ferdinand, Indiana