INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Inner join within an Inner join

Inner join within an Inner join

(OP)
Good afternoon, I'm just looking for an explanation - quick or otherwise - for what this syntax actually means.

Quote:


(dbo_Appointment INNER JOIN dbo_MPI ON dbo_Appointment .Patient = dbo_MPI.Patient) INNER JOIN dbo_Referrals ON dbo_Appointment .Referral_Ref = dbo_Referrals .Referral_Ref

Many thanks,
D€$

RE: Inner join within an Inner join

hi,

Same as

CODE

From 
  dbo_Appointment
, dbo_MPI 
, dbo_Referrals 
WHERE dbo_Appointment .Patient      = dbo_MPI.Patient
  and dbo_Appointment .Referral_Ref = dbo_Referrals .Referral_Ref 

RE: Inner join within an Inner join

(OP)
Hi Skip, thanks for that. Yes, I guess that makes sense as graphically there are joined that way.

Now, this seems similar but different:

Quote:


dbo_AR_DateLookUp RIGHT JOIN (dbo_AR_ClinicCodes RIGHT JOIN dbo_CDI_OP_Appointment ON dbo_AR_ClinicCodes.Local_Clinic_Code = dbo_CDI_OP_Appointment.Clinic_Or_Facility_Code) ON dbo_AR_DateLookUp.Source_Date = dbo_CDI_OP_Appointment.Appointment_Date

Graphically
dbo_AR_DateLookUp is Right joined on Source_Date to dbo_CDI_OP_Appointment. Appointment_Date

AND

dbo_AR_ClinicCodes. Local_Clinic_Code is Right joined ON dbo_CDI_OP_Appointment. Clinic_Or_Facility_Code

Is this just how it looks when there are two tables joined to one common table?

Many thanks,
D€$

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close