|
Posted by Hugo Kornelis on 10/01/51 11:38
On 27 Jan 2006 06:22:41 -0800, lvpaul@gmx.net wrote:
>All right now. Thank I have learned new possibilities:
(snip)
>-- Achtung verursacht FEHLER WHERE not(l.werk is null)
Hi Paul,
What do you mean with the comment? Do you mean that you get errors with
the WHERE clause included, or that you get errors if you exclude it?
With this where clause, the LEFT OUTER JOIN is in effect reduced to an
INNER JOIN. This means that you will get correct information for rows
with at least one corresponding row in POOL_LIEFERDAT, but if you have a
FAKT_AUFTRAG with no rows yet in POOL_LIEFTERDAT, you won't get any rows
for it in the INSERT.
Removing the WHERE clause means that you'll also get four rows for each
FAKT_AUFTRAG with no corresponding POOL_LIEFERDAT.
Tchüß!
--
Hugo Kornelis, SQL Server MVP
Navigation:
[Reply to this message]
|