home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / 5768 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.6 KB

  1. Path: sparky!uunet!haven.umd.edu!umd5!info.umd.edu!chibuike
  2. From: chibuike@info.umd.edu (Chibuike O. Nwaeze)
  3. Newsgroups: comp.databases
  4. Subject: NEED HELP WITH DBASE4
  5. Message-ID: <14641@umd5.umd.edu>
  6. Date: 23 Jul 92 21:18:18 GMT
  7. Sender: news@umd5.umd.edu
  8. Organization: University of Maryland, College Park
  9. Lines: 62
  10.  
  11.  
  12.  I need help creating a relational database.  I have 3 databases 
  13.  subtype.dbf type.dbf and riotdata.dbf.  riotdata contains the fields 
  14. subtype and type, which form the text field typename and subtypename.
  15. what I need to do is relate these databses in such a way that the 
  16. riotdata->type influences the field riotdata->subtype.  type.dbf and 
  17. subtype.dbf contain the text data for riotdata->type and riotdata->
  18. subtype.  
  19.  
  20. Here is part of my program so far
  21.  
  22. ############################################################
  23.  
  24. use subtype in 2 order ixcode
  25.  
  26. select 1         * which is the riotdata database
  27. scan
  28.     select 2
  29.     ixcode = str(code) + str (subcode) * this does not work.
  30.     seek ixcode
  31.     replace riotdata->subtypenam with name 
  32.     select 1
  33. endscan
  34.  
  35. #####################################################
  36.  
  37. type.dbf
  38. ********
  39.  
  40. has the following fields
  41.  
  42. field 1: code       field 2: name
  43.  
  44.  
  45. subtype.dbf 
  46. ***********
  47.  
  48. has the following fields
  49.  
  50. field 1: code ( which is the same with type) 
  51.  
  52. field 2: subcode 
  53.  
  54. field 3: name 
  55.  
  56. riotdata.dbf
  57. ************
  58.  
  59. has 58 fields including 
  60.  
  61. field 1: code ( which is the same with type & subtype) 
  62.  
  63. field 2: subcode  (which is the same with subtype)
  64.  
  65.  
  66. if any one understands this and can be of help to me please send me e-mail
  67. at chibuike@info.umd.edu.
  68.  
  69.  
  70.  
  71. -C. Nwaeze
  72.  
  73.