Created
March 28, 2012 14:25
-
-
Save mpmont/2226601 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT TOP 10 * | |
FROM Doctor AS D, Doctor_Hospital AS DH, Hospital AS H | |
JOIN Doctor ON Doctor.DoctorId = Doctor_Hospital.DoctorId | |
JOIN Hospital ON Doctor_Hospital.HospitalId = Hospital.HospitalId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SELECT TOP 10 *
FROM Doctor AS doctore
JOIN Doctor_Hospital
ON Doctor.DoctorId = Doctor_Hospital.DoctorId
JOIN Hospital
ON Doctor_Hospital.HospitalId = Hospital.HospitalId