خرید بک لینک

Vote count: 0

I have four table like the picture bellowenter image description here

I want to count how many student that have status 'v' where in table submission have submission type '1' and group by student_id so in the last i can get table like thisenter image description here

I have try sql query like this

select p.id, (SELECT count(*) FROM  (select b.id from student as a , submission  as b WHERE a.id = b.student_id and b.id_submission_type =1  and a.status_n='v' and a.id_academic_programe = p.id GROUP BY b.student_id) )  from academic_programe as p

Butt give me error

Any suggestion? sory for my english

asked 52 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 3 ارديبهشت 1396 ساعت: 8:39

صفحه بندی