this should work fine:
PHP Code:select student_id from (
select distinct student_id,
count(*) over (partition by student_id) courses
from my_table
where course in ('java','c'))
where courses = 2;
|
Results 1 to 10 of 14
Thread: problem in select queryThreaded View
|
Click Here to Expand Forum to Full Width |