home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!usc!rpi!newsserver.pixel.kodak.com!laidbak!tellab5!vpnet!mike
- From: mike@vpnet.chi.il.us (michael kamlet)
- Subject: Help with SQL statement
- Message-ID: <1993Jan22.211051.4867@vpnet.chi.il.us>
- Reply-To: mike@vpnet.chi.il.us
- Organization: Vpnet Public Access
- Distribution: na
- Date: Fri, 22 Jan 1993 21:10:51 GMT
- Lines: 20
-
- I'm having a problem writing an SQL statement for the following situation
- (and I'm not sure its really possible)
-
- I have 2 tables lets say I have a Customer table and an order table.
- I want to query the database for all customers and show their orders
- for the past month. I may have more than 1 order for a customer.
-
- The problem is that if I don't have an order for a customer, the join will
- not find a match and that customer will be left out of the report.
-
- I still want to show the customer even if no orders are present.
-
- Is this possible with SQL ?? was my explanation clear enough ??
-
- Thanks
-
- Mike Kamlet
- mike@vpnet.chi.il.us
-
-
-