数据库的应用(二)

2015-11-21 01:35:08 · 作者: · 浏览: 7
tu_name from (

// select stu.stu_name,stu.stu_age,cla.class_name

// from

// t_student stu,t_class cla

// where

// stu.class_id = cla.class_id

// and cla.class_id in(

//

// select

// t.class_id

// from

// t_student t

// group by t.class_id

// having(avg(t.stu_age)>25)

// )

// )A