You are on page 1of 1

SELECT s.sub_code, s.sub_name, s.sub_type, b.section, b.batch_name, l.

name FROM
`course_allotment` c, departments d, subjects s, batchs b, login l where c.dept
_id=d.dept_id and d.dept_id=4 and c.`sub_id`=s.sub_id and c.`batch_id`=b.`batch_
id` and c.`user_id`=l.id ORDER BY CAST( SUBSTR( `sub_code` , 4 ) AS UNSIGNED )

You might also like