實訓三 鏈接查詢和嵌套查詢

1. 列出至少有一個僱員的全部部門。  sql 1 select  *  from  dept  where  deptno  in ( select  deptno  from  emp  group  by  deptno  having  count (*)>0) 2. 列出薪金比「SMITH」多的全部僱員。 markdown 1 select  *  from  emp  where  s
相關文章
相關標籤/搜索