home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / 8472 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.0 KB

  1. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!escargot!stan!skt
  2. From: skt@stan.xx.swin.oz.au (TANG S)
  3. Newsgroups: comp.databases
  4. Subject: Help in Rbase!
  5. Summary: Help in Rbase
  6. Keywords: Rbase, Database
  7. Message-ID: <7636@stan.xx.swin.oz.au>
  8. Date: 14 Dec 92 06:23:56 GMT
  9. Organization: Comp. Centre, Swinburne University of Tech., Melbourne, Australia
  10. Lines: 36
  11.  
  12. I am a new user of Rbase.  I have a simple problem here with Rbase.  I hope 
  13. someone out there who are familiar with Rbase can help me.  I am using Rbase 3.1.
  14. I want to check if a variable is already in a column of a specified table. 
  15. I have tried several ways, but did not work.  The following are some of the 
  16. IF statements I have tried.
  17.  
  18.  
  19. (1)
  20. IF itemid EXISTS (SELECT EE# FROM LTrans WHERE EE# = .itemid) THEN
  21.   ...
  22. ELSE
  23.   ...
  24. ENDIF
  25.  
  26.  
  27.  
  28. (2)
  29. IF itemid IN (SELECT EE# FROM LTrans WHERE EE# = .itemid) THEN
  30.   ...
  31. ELSE
  32.  ...
  33. ENDIF
  34.  
  35.  
  36. (3)
  37. IF (SELECT EE# FROM LTrans WHERE EE# = .itemid) IS NOT NULL  THEN
  38. ...
  39. ELSE
  40. ...
  41. ENDIF
  42.  
  43.  
  44. Thanks in advance.  Please email to me.
  45.  
  46.  
  47.  
  48.