home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / apps / 7536 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.8 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!ogicse!sequent!muncher.sequent.com!krader
  2. From: krader@sequent.com (Kurtis D. Rader)
  3. Newsgroups: comp.os.ms-windows.apps
  4. Subject: Re: ACCESS: computations with blank fields
  5. Message-ID: <1993Jan26.011806.3264@sequent.com>
  6. Date: 26 Jan 93 01:18:06 GMT
  7. Article-I.D.: sequent.1993Jan26.011806.3264
  8. References: <1993Jan25.194751.2567@tijc02.uucp> <1k1q6fINN5n7@transfer.stratus.com>
  9. Sender: usenet@sequent.com (usenet )
  10. Distribution: usa
  11. Organization: Sequent Computer Systems, Inc.
  12. Lines: 23
  13. Nntp-Posting-Host: crg8.sequent.com
  14.  
  15. rscott@vineland.pubs.stratus.com (Richard Scott) writes:
  16. >In article <1993Jan25.194751.2567@tijc02.uucp> kjf388@tijc02.uucp (Ken Fisher
  17. >) writes:
  18. >> On-line help says the "sum" function interprets blanks as zero, but that
  19. >> does not seem to be the case.
  20. >Yes, the Sum function (as in 'Sum(x)') does interpret Null values (blanks) as  
  21. >zero.  But the expression operators (as in '+'), do not. In expressions, binary
  22. >operators with either or both operands Null yield a Null result.  I ran into
  23. >the same problem and was able to get around it only by writing functions (e.g.,
  24. >NonNullDifference(x,y) in Access BASIC.
  25. >-----
  26. >Richard Scott
  27.  
  28. The best advice I can give is DON'T USE NULLS if you wish to retain your
  29. sanity and have any hope of trusting the output of your queries.  See
  30. chapter 8 of "Relational Database Writings 1985-1989" by C. J. Date.
  31. He has also written a several essays since that time on this topic which
  32. have appeared in various magazines.
  33. -- 
  34. Kurtis D. Rader, Technical Support Engineer    voice:    800/854-9969
  35. NAOTS, Sequent Computer Systems                fax:      503/578-5453
  36. 15450 SW Koll Parkway, M/S WIL1-501            UUCP:     ...uunet!sequent!krader
  37. Beaverton, OR  97006-6063                      internet: krader@sequent.com
  38.