Question: What mistakes/bad query writing practice examples are made with this query that joins more than two tables? SELECT p.FirstName, d.LastName, a.apptDate, apptTime FROM tblPatients p

What mistakes/bad query writing practice examples are made with this query that joins more than two tables?

SELECT p.FirstName, d.LastName, a.apptDate, apptTime

FROM tblPatients p

ON p.PatientID = a.PatientID

JOIN tblAppointments

JOIN tblDoctors d

ON p.DoctorID = a.DoctorID

WHERE DoctorID = 15

ORDER BY v.Name;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!