-- 查詢"李"姓老師的數量spa
select count(1) from teacher where t_name like '李%' ;
-- 查詢學過"張三"老師授課的同窗的信息code
select t1.* from student t1, score t2 where t1.s_id = t2.s_id and t2.c_id in ( select c_id from course where t_id = ( select t_id from teacher where t_name = '張三'));
select a.* from student a join score b on a.s_id = b.s_id where b.c_id in( select c_id from course where t_id =( select t_id from teacher where t_name = '張三'));
--2019/04/18blog