home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9442 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  3.6 KB

  1. Path: sparky!uunet!munnari.oz.au!sgiblab!sdd.hp.com!usc!howland.reston.ans.net!paladin.american.edu!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!unixg.ubc.ca!mvelez
  2. From: mvelez@unixg.ubc.ca (Michael Velez)
  3. Newsgroups: comp.databases
  4. Subject: help designing Paradox files/forms
  5. Date: 27 Jan 93 08:27:22 GMT
  6. Organization: The University of British Columbia
  7. Lines: 80
  8. Message-ID: <mvelez.728123242@unixg.ubc.ca>
  9. NNTP-Posting-Host: unixg.ubc.ca
  10. Summary: Need help designing paradox files and forms
  11. Keywords: Paradox forms file structure advise help
  12.  
  13. I'm new to paradox 4.0 and would like some recommendations on
  14. designing my database. It is going to be used for on a farm and will
  15. hopefully keep track of the breeding history of various sows and boars
  16. (pigs).
  17.  
  18.  
  19. I forsee having four main data files.
  20.    - a Sow file that contains the Sow information, one record per Sow
  21.  
  22.    - a Boar file that contains the Boar information, one record per
  23.      Boar
  24.  
  25.    - a Breeding file that contains a separate record for each breeding
  26.        attempt, with a "LitterNumber" to identify this particular
  27.        litter of pigs.
  28.  
  29.    - a Litter file that contains shipping info for this litter.
  30.  
  31.    file descriptions:
  32.        Sow - IDTAG          Boar - IDTAG          Breed - Sow_IDTAG
  33.            - DateIn              - DateIn               - Boar_IDTAG
  34.            - DateOut             - DateOut              - LitterNumber
  35.            - [more fields]       - [more fields]        - BreedingDate
  36.                                                         - [more fields]
  37.  
  38.        Litters - LitterNumber
  39.                - DateShipped
  40.                - ShipWeight
  41.                - [more fields]
  42.  
  43. Relations:
  44.  1) A Sow will multiple Breed records, which within themselves (Breed
  45.     file) will contain a unique LitterNumber that will be linked to the
  46.     Litters file.
  47.  
  48.  2) The Boar file is linked to the Breed file and thus the Litters
  49.     file in the same way as the Sows are.
  50.  
  51.  3) The Breed file contains all the specific breeding information and
  52.     must somehow be linked to the Sow file, the Boar file and to the
  53.     Litters file.
  54.  
  55.  
  56. I assume that the IDTAG field in both Sow and Boar files, and the
  57. LitterNumber field in the Litters file should all be indexed. The
  58. question is: how do I link in the Breed file?
  59.  
  60.  
  61.  
  62. Another question: We need to display this Sow-Breed information in
  63. columns like the following:
  64.  
  65.  
  66.   | -----------------------------------------------------------|
  67.   | Sow:  _____    DateIn:  _____                              |
  68.   |                DateOut: _____                              |
  69.   | -----------------------------------------------------------|
  70.   |                Breed rec #1 |  Breed rec #2 | Breed rec #3 |
  71.   |              |              |               |              |
  72.   | Boar ID:     |              |               |              |
  73.   | BreedingDate:|              |               |              |
  74.   | LitterNumber:|              |               |              |
  75.   |   [etc]      |              |               |              |
  76.   |                                                            |
  77.   |-------------------------------------------------------------
  78.  
  79.  
  80. I can get multiple records horizontally using a form, but haven't
  81. found any way to display them vertically. Is this possible using a
  82. form? I don't really have any choice in the matter, I have to display
  83. them this way (the Boss says so). What are my options?
  84.  
  85. Any ideas on the file design or form design would be greatly
  86. appreciated!
  87.  
  88. Scott
  89. -- 
  90. Michael Scott Velez           |     "If God could dance, it would be
  91. mvelez@unixg.ubc.ca           |     in a black t-shirt and at 140bpms."
  92. Scott_Velez@mindlink.bc.ca    |
  93.