home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!gatech!rpi!uwm.edu!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!rpeterse
- From: rpeterse@watserv1.uwaterloo.ca (Raymond Petersen)
- Subject: Re: Help with SQL statement
- Message-ID: <C1BqK7.FnH@watserv1.uwaterloo.ca>
- Organization: University of Waterloo
- References: <1993Jan22.211051.4867@vpnet.chi.il.us>
- Distribution: na
- Date: Sat, 23 Jan 1993 20:36:05 GMT
- Lines: 19
-
- In article <1993Jan22.211051.4867@vpnet.chi.il.us> mike@vpnet.chi.il.us writes:
- >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 ??
- Yes it was quite clear. What you want is something called "outer joins".
- It is a feature that not every SQL RDBMS supports.
- I mostly use WATCOM SQL and they just put in support for this in version 3.1
- (just released in December)
-
- Raymond Petersen
- MicroComputer Centre
- The Mutual Group (Standard employer/employee warnings apply)
-