home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9348 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1010 b   |  32 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!usc!rpi!newsserver.pixel.kodak.com!laidbak!tellab5!vpnet!mike
  3. From: mike@vpnet.chi.il.us (michael kamlet)
  4. Subject: Help with SQL statement
  5. Message-ID: <1993Jan22.211051.4867@vpnet.chi.il.us>
  6. Reply-To: mike@vpnet.chi.il.us
  7. Organization: Vpnet Public Access
  8. Distribution: na
  9. Date: Fri, 22 Jan 1993 21:10:51 GMT
  10. Lines: 20
  11.  
  12. I'm having a problem writing an SQL statement for the following situation
  13. (and I'm not sure its really possible)
  14.  
  15. I have 2 tables lets say I have a Customer table and an order table.
  16. I want to query the database for all customers and show their orders
  17. for the past month.  I may have more than 1 order for a customer.
  18.  
  19. The problem is that if I don't have an order for a customer, the join will
  20. not find a match and that customer will be left out of the report.
  21.  
  22. I still want to show the customer even if no orders are present.
  23.  
  24. Is this possible with SQL ??  was my explanation clear enough ??
  25.  
  26. Thanks 
  27.  
  28.    Mike Kamlet
  29.    mike@vpnet.chi.il.us
  30.  
  31.  
  32.