- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
sqlserver练习答案(Practice sqlserver answer)
sqlserver练习答案(Practice sqlserver answer)
The staff set up the table emp table in the SQLSERVER pubs database, and insert data
The Chinese_PRC_CS_AS field data casesensitive
The Chinese_PRC_CI_AS field data insens
Use pubs
Create table emp (- employee table
Empno int primary key -.
Ename varchar (20), - name
Job varchar (20) COLLATE Chinese_PRC_CS_AS -
Mgr int - the higher number
Hiredate datetime - in time
Sal decimal (7,2), - salary
Comm decimal (7,2), - Commission
Deptno int - the department number
)
Go
Insert into EMP values (7369,SMITH,CLERK, 7902,12/17/1980, 800, null, 20)
Insert into EMP values (7499,ALLEN,SALESMAN, 7698,02/20/1981, 1600300,30)
Insert into EMP values (7521,WARD,SALESMAN, 7698,02/22/1981, 1250500,30)
Insert into EMP values (7566,JONES,MANAGER, 7839,04/02/1981, 2975, null, 20)
Insert into EMP values (7654,MARTIN,SALESMAN, 7698,09/28/1981,30)
Insert into EMP values (7698,BLAKE,MANAGER, 7839,05/01/1981, 2850, null, 30)
Insert into EMP values (7782,CLARK,MANAGER, 7839,06/09/1981, 2450, null, 10)
Insert into EMP values (7788,SCOTT,ANALYST, 7566,04/19/1987, 3000, null, 20)
Insert into EMP values (7839,KING,PRESIDENT, null,11/17/1981, 5000, null, 10)
Insert into EMP values (7844,TURNER,SALESMAN, 7698,09/08/1981, 1500,0,30)
Insert into EMP values (7876,ADAMS,CLERK, 7788,05/23/1987, 1100, null, 20)
Insert into EMP values (7900,JAMES,CLERK, 7698,12/03/1981, 950, null, 30)
Insert into EMP values (7902,FORD,ANALYST, 7566,12/03/1981, 3000, null, 20)
Insert into EMP values (7934,MILLER,CLERK, 7782,01/23/1982, 1300, null, 10)
Go
Complete the following query in SQLSERVER query analyzer:
1. of all employees in 30.
Select * from EMP where deptno = 30
2. a list of all clerks (CLERK) name, code and department code.
Select ename, empno deptno, from EMP where job=CLERK
3. to find the higher salary Commission.
Select * from EMP where comm sal
4. to find 60% employees salary higher than the Commission.
Select * from EMP where comm Sal * 0.6
5. to find all
您可能关注的文档
- flash动画网络催生的新视觉形式(Flash animation a new form of Web Arts).doc
- flex debug error(Flex调试错误).doc
- flex优缺点分析(Flex advantages and disadvantages analysis).doc
- for_to_of_from_的区别(The difference between for_to_of_from_).doc
- fortigate上面检查网络连通性的三个步骤(FortiGate three steps to check network connectivity above).doc
- fpga的介绍(The introduction of FPGA).doc
- fraewell address 布什2009告别演说(中英双语对照演讲稿)(Fraewell address Bush 2009 farewell speech (Chinese and English bilingual speeches)).doc
- fdf-x标准(Fdf-x standard).doc
- ftp大学地址(FTP University.).doc
- ftir分析方法(FTIR analysis method).doc
- sql select语句完整的执行顺序(SQL complete select statement execution order).doc
- sql行列转换方法整理(SQL ranks conversion method of finishing).doc
- sql语句学习(SQL statement learning).doc
- table-switch(表开关).doc
- sql练习及答案(SQL exercises and answers).doc
- toefl作文考试百个精选替换词(TOEFL writing test hundreds of selected words).doc
- tmpgenc --小日本的使用详释(TMPGEnc - a small Japanese use difference).doc
- tcl与流通领域道不同却共相为谋(TCL and circulation but for different universals).doc
- tomcat 连接池时错误集(Set error Tomcat connection pool).doc
- tomcat下jndi数据库连接池的配置和测试(JNDI Tomcat database connection pool configuration and testing).doc
文档评论(0)