home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / sybase / 539 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.2 KB  |  39 lines

  1. Newsgroups: comp.databases.sybase
  2. Path: sparky!uunet!tekbspa!tssgate!esh
  3. From: esh@prague.tss.com (Edward S. Hirgelt)
  4. Subject: Re: Using Views for data presentation
  5. In-Reply-To: 's message of Monday, 21 Dec 1992 10:15:48 MST
  6. Message-ID: <ESH.92Dec21172435@prague.tss.com>
  7. Sender: news@tss.com (USENET Network News)
  8. Organization: Teknekron Software Systems, Inc.
  9. References: <92356.101548IDAZS@ASUACAD.BITNET>
  10. Date: Tue, 22 Dec 1992 01:24:35 GMT
  11. Lines: 26
  12.  
  13.  
  14. On Monday, 21 Dec 1992 10:15:48 MST, Ajay Surana & John Rome ask about
  15. conditionals in views.
  16.  
  17. The short answer is nope, can't do it.
  18.  
  19. However, consider doing the same thing with stored procedures. You may
  20. have to do some careful thinking to decide on what to pass the
  21. procedure as parameters, but you should be able to accomplish some of
  22. what you want that way. The stored procedure can do some conditional
  23. work and decide what to return.
  24.  
  25. The big problem will be many selects instead of a single one. Any client
  26. will have to loop over dbresults as well as dbnextrow which they should
  27. do anyway.
  28.  
  29. Hmmm, sounds like a case for select triggers (which don't exist).
  30.  
  31. Ed
  32.  
  33.  
  34.  
  35. --
  36. Ex vitio alterius    |Ed Hirgelt            |esh@tss.com
  37. sapiens emendat suum.    |Teknekron Software Systems, Inc|
  38. (Publilius Syrus)    |Palo Alto, Ca.            |
  39.