我是新来写HQl
查询请帮帮我.. 实际上我SQL Query
有 5 个表,即COURSE
, SKILLSET
, TIMETABLE
, INTREST
,USER
select
(select count(*) from intrest) AS
NoAttends,course.NAME,course.TYPE,user.FIRSTNAME,user.LASTNAME,skill.COURSE_CONT,
skill.TEACH_EXP,tt.CLASS_DUR,tt.COURSE_DUR,tt.DATE_TIME from COURSE course
inner join SKILLSET skill on
skill.course_id=course.s_id
inner join USER user on
user.s_id=skill.user_id
inner join TIMETABLE tt on
tt.course_id=course.s_id
where course.name IN ('course')
ORDER BY course.name LIMIT 10;
请帮我?