Albert,
My point is that there is no such thing as a LEFT INNER JOIN or a RIGHT
INNER JOIN. There is only an INNER JOIN.
There does exist a LEFT OUTER JOIN and a RIGHT OUTER JOIN.
Quote:> I didn't originate the concept in this thread, I merely tried to guess
> at an explanation of what Doug meant by it. I think I slipped up in one
> place in my terminology, but the general drift is probably clear enough.
Unfortunately, particularly when dealing with RDBMS's and SQL, incorrect
terminology frequently reveals confusion about both databases and SQL. I'm
not saying that you suffer from this, but I am trying to make sure that
individuals who read this newsgroup do not "walk away" with an inaccurate
understanding of SQL Server. I'm prompted to do this because I remember when
I was learning SQL Server that a wealth of misinformation was supplied to
me, and it took me some time to un-learn it.
I fully understand that we try to "simplify" things for newbies, but I do
believe that one needs to be accurate even when simplifying. I also
understand that there is a fine line to be drawn re: the amount of detail
that can be supplied within the context of a newsgroup. Perhaps we are
simply drawing the line at different places :-)
-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.
> >Albert,
> >I believe you are confusing JOINs with PK / FK relationships.
> Only insofar as the Acess user interface causes such confusion.
> I'm pretty sure that the join direction option when you create a
> relationship is merely the default join type to be used in queries
> joining the two tables. The fact that MS decided to put it there can
> cause the sort of confusion that this thread has illustrated.
> >The issue of PK / FK relationships is completely different from joins.
One
> >can join tables without there being either an explicit or implicit PK /
FK
> >relationship between the tables.
> >So, again, I'm requesting a code sample of an SQL query that uses a left
or
> >a right inner join.
> I didn't originate the concept in this thread, I merely tried to guess
> at an explanation of what Doug meant by it. I think I slipped up in one
> place in my terminology, but the general drift is probably clear enough.
> >-------------------------------------------
> >BP Margolin
> >Please reply only to the newsgroups.
> >When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
> >can be cut and pasted into Query Analyzer is appreciated.
> >> >> A Left inner join and a right inner join are an inner join.
> <...>
> >> My interpretation of this is that when you set up a join you can define
> >> the direction of dependency.
> Ooops! Should have been
> "when you set up a relationship you can define the
> direction of dependency."
> Apply similar corrections furthe down.
> > With 1 to many joins it is automatically
> >> assumed that the dependency in a join with enforced referential
> >> integrity is from 1 to Many.
> >> In a 1 to 1 join I believe that the direction you drag the join boxes
in
> >> the relationship window defines which table must be populated first. As
> >> I normally use 1:1 for subtyping I automatically drag from the main
> >> table (e.g. tblEmployee) to the subtype table (e.g. tblManager). Doing
> >> it the other weay round can (if I remember rightly) cause problems.
> >> It's ages since this last happened to me and I'm too lazy to experiment
> >> right now!
> >> --
> >> Albert Marshall
> >> Database Developer
> >> Marshall Le Botmel Ltd
> >> 01242 222017
> --
> Albert Marshall
> Database Developer
> Marshall Le Botmel Ltd
> 01242 222017