1.select pname,qty from p,s where mno='m1' and p.pno=s.pno
2.select pname as '商品名',avg(qty) as 平均销售量 from s,p,m where m.city='上海' and s.mno=m.mno and p.pno=s.pno
3.select MNO,pno,qty from s where pno in(select pno form p where color='red'
4.π pno,pname,qty (φ(pno(s)=pno(p)))
5.π pname,qty φ(mno='M1'∧pno(p)=pno(s))
π是投影的意思 φ是选择的意思