home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / 8004 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.5 KB  |  42 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!dcatlas!joet
  3. From: joet@dcatlas.dot.gov (Joe Trott)
  4. Subject: Re: Query by example?
  5. Message-ID: <1992Nov20.211816.25166@dcatlas.dot.gov>
  6. Organization: U.S Dept. of Transportation
  7. References: <1992Nov19.222836.14028@delfin.com>
  8. Distribution: usa
  9. Date: Fri, 20 Nov 1992 21:18:16 GMT
  10. Lines: 30
  11.  
  12. gary@delfin.com (Gary Bartow) writes:
  13.  
  14. >I just heard the phrase "Query By Example" and was wondering if anyone knew 
  15. what it was all about.  It seems to be a technique to help users form their
  16. queries more precisely.
  17.  
  18. Basically, Query-By-Example lets users type in examples of the data they
  19. are trying to find.  In a procedural language, for example, a query is
  20. more like a programming statement, e.g.:
  21.  
  22. print report2 where state eq "MD" and zipcode ne "212*" and amount ge 12500
  23.  
  24. In QBE, a table or even a user defined form appears, and the user directly
  25. types in his criteria in the appropriate fields, e.g. "MD" in state,
  26. NOT "212*" in zipcode, and >12500 in amount.
  27.  
  28. (This was a simple example; they can get more complex, but you see how much
  29. easier QBE can be to the typical non-programming (l)user)
  30.  
  31. It isn't really a matter of precision, but one of ease, however something
  32. that is easier will presumably produce less mistakes, so maybe it *is* more
  33. precise sometimes.
  34.  
  35. By the way, please break your lines at somewhere around 72 characters.  Joke
  36. editors like VI that don't have reasonable cursor movement keys are difficult
  37. to use on such messages; the screen shows multiple lines, but VI just beeps
  38. at any attempt to move DOWN :(.
  39.  
  40. -JTT
  41.  
  42.