About Question enthuware.oce-jpad.v6.2.487 :

Moderator: admin

Post Reply
johnlong
Posts: 197
Joined: Mon Jun 20, 2016 5:06 pm
Contact:

About Question enthuware.oce-jpad.v6.2.487 :

Post by johnlong »

Code: Select all

select c.instructor.name 
from Student s, Course c
where s.studentid = ?1
Would be incorrect?

admin
Site Admin
Posts: 10045
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.487 :

Post by admin »

The part "from Student s, Course c" will cause a cartesian product of Student with given student id and all courses. So this will not help. You need to join Student and Course to restrict the Courses.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests