oracle查询入门练习(oracle query entry to practice)

oracle查询入门练习(oracle query entry to practice)

ID:11057192

大小:35.50 KB

页数:12页

时间:2018-07-09

oracle查询入门练习(oracle query entry to practice)_第1页
oracle查询入门练习(oracle query entry to practice)_第2页
oracle查询入门练习(oracle query entry to practice)_第3页
oracle查询入门练习(oracle query entry to practice)_第4页
oracle查询入门练习(oracle query entry to practice)_第5页
资源描述:

《oracle查询入门练习(oracle query entry to practice)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、oracle查询入门练习(Oraclequeryentrytopractice)OraclequeryentrytopracticePracticeforSCOTTOracle============queryfunctionandpartof==============Thefirstpart:1,theuseofbasicquery.(1)DEPTquerytableshowsallthenameoftheDepartment.(2)EMPquerytableshowsallemployeesandtheannualinco

2、me(monthlysalary=salary+allowance),NULL,andspecifythecolumnalias"annualincome".(NVL(comm,0)commnullvaluewith0alternative)(3)querydoesnotexistinalldepartments,employees.2,limitthequerydata(1)EMPquerytableshowsmorethan2850ofthewagesoftheemployeenameandsalary.(2)EMPquer

3、ytableshowsthesalaryin1500~2850betweenallemployeesandwages.(3)EMPquerytableshowsthecodefortheemployee'snameanddepartmentcode7566.(4)EMPquerytableshowsemployeesandwagesector10and30morethan1500ofthewages.(5)EMPquerytableshowsallemployeessecondcharacters"A"inthenameofth

4、eirwages.(6)EMPquerytableshowsgrantsnonemptyallemployeesandsubsidies.3,sortingdata(1)EMPquerytableshowsallemployeesname,salary,dateofemployment,andsortedinascendingorderoftheemployeename.(2)EMPquerytableshowsMay1,1981toemployees,jobsandemploymentdatesinFebruary1,1981

5、,andsortedtodateofemployment.(3)EMPquerytableshowsthebenefitofallemployees,wagesandbenefits,andtowagesubsidiesascendinganddescendingorder.Thesecondpart:Thereareatleast1.listsalldepartmentsofanemployee.2.alistofalltheemployees'salariesmorethan"SMITH".3.listthenamesofa

6、llemployeesandtheirnames.4.listthedateofentryofallemployeesearlierthantheirdirectsuperiors.5.listthenameoftheDepartmentandtheseemployees,theDepartmentemployeelistatthesametime.Alistofall6."CLERK"(clerk)thenameandthenameofthedepartment.7.listsavarietyofpositionsthemin

7、imumsalary,andshowstheminimumsalaryofmorethan1500ofalljobsandtheminimumwage.8.listedin"SALES"(Sales)theemployee'sname,thatdonotknowthesalesdepartmentDepartmentnumber.9.listedcompaniesofallemployeessalariesarehigherthantheaverage.All10.employeesarelistedwiththe"SCOTT"

8、inthesamejobs.11.listedsalaryequalinalldepartmentsofthe30employeesworksalaryemployeenameandsalary.12.listsinalldepartmentemployeess

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。