home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / oracle / 2731 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.0 KB

  1. Path: sparky!uunet!noc.near.net!news.centerline.com!sebastian.centerline.com!user
  2. From: dewey@centerline.com (Devan F. Dewey)
  3. Newsgroups: comp.databases.oracle
  4. Subject: last_day vs '31-JAN-93'??
  5. Followup-To: comp.databases.oracle
  6. Date: 8 Jan 1993 17:33:52 GMT
  7. Organization: CenterLine Software, Inc.
  8. Lines: 21
  9. Distribution: world
  10. Message-ID: <dewey-080193124019@sebastian.centerline.com>
  11. NNTP-Posting-Host: 140.239.3.212
  12.  
  13.  
  14. If I wrote a query with a where clause:
  15.  
  16.                                             where transdate between '01-JAN-93 and '31-JAN-93'
  17.  
  18. why would my results differ from:
  19.  
  20.                                             where transdate between '01-JAN-93 and last_day(sysdate)
  21.  
  22.  
  23. Any hints on how the last_day function returns the time component
  24. might be helpful.
  25.  
  26. -Devan
  27.  
  28.                              
  29.                Devan F. Dewey | Senior Systems Analyst
  30.           CenterLine Software | dewey@centerline.com
  31.             10 Fawcett Street | "Leme esplain - no dere is
  32.           Cambridge, MA 02138 | too much. Leme sum up."
  33.                                        -Inigo Montoya
  34.