- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
sql面试题(SQL interview questions)
sql面试题(SQL interview questions)
1., the Id in a table has multiple records, check out all of the ID records and show how many records are in total.
-------------------------------------------------------------------------------
Select, ID, count (*), from, tab8, group, by, ID, having, count (*) 1
Select * from (select, tab8, count (ID), as, num, from, tab8, group, by, ID) t, where, t.num1
2. use a SQL statement to query the names of each student who is more than 80 points in each class
Name Kecheng fenshu
Zhang San language 81
Zhang San math 75
Li Si language 76
Li Si math 90
Wang Wu language 81
Wang Wu math 100
Wang Wu English 90
A): select, distinct, name, from, tab9, where, name,, not, in (select, distinct, fengshu=80, name, from, tab9, where, etc)
B select * from tab9): T7 where t7.name not (in select t5.name from (select * from (select t1.kecheng from tab9 T1 group by t1.kecheng (select), t2.name from tab9 T2 group by t2.name (T4)), select * from tab9) T5 where t4.name and t4.kecheng = t5.kecheng and = t5.name, t5.fengshu 80)
3., there is a table, which has 3 fields: Chinese, maths, english. Among them, there are 3 records representing 70 points in language, 80 in math and 58 in English. Please check out these three records with one SQL statement and write them according to the following conditions (and write your thoughts):
Greater than or equal to 80 indicating excellence, greater than or equal to 60, indicating passing, less than 60 points indicating failure.
Display format:
Chinese, maths, English
Pass well; fail
-------------------------------------------------------------------------------------------
Select
(case, when, language, =80, then, excellent, when, language, 60, then, pass, else, as, end), Chinese language,
(case, when, math, =80, then excellent, when math, 60, then , passing else , failing end , as math),
(case, when, English, =80, then excellent, when English, 60, then , passing else , failing end ), as English
From tab5
Four
Student (S#, Sna
您可能关注的文档
- a股市场中金融股的一些特性(Some of the characteristics of a stock market in financial stocks).doc
- b2b商业模式分析(B2B business model analysis).doc
- b2c的现状及发展分析(Present situation and development analysis of B2C).doc
- baby3岁前最需要父母陪伴(Most parents need to be with you before baby3).doc
- basic语言的基本命令(The basic command of the basic language).doc
- baidu地图android创建流程(百度Android创建流程地图).doc
- avr控制矩阵键盘,12864显示简单计算器(AVR control matrix keyboard, 12864 simple calculator).doc
- bat 批处理延迟运行脚本(Bat batch running script).doc
- bh1750数字光照(Bh1750 digital light).doc
- beautiful smile and love美丽的微笑和爱心(美丽的微笑与爱心美丽的微笑和爱心).doc
- srr酸浸法提取硫酸镍的新工艺流程与实践agn(New technological process and practice of extracting nickel sulfate by SRR acid leaching method Agn).doc
- socket介绍(socket介绍).doc
- star ar-3200+打印起始位置设置(Star ar-3200+ print start position setting).doc
- step by step减肥法(一步一步减肥法).doc
- sqlserver数据库操作语句-基础部分(SQLSERVER database manipulation statement - basic part).doc
- stm8读sht21(STM8读SHT21).doc
- stm32定时器延时时间(STM32 timer delay time).doc
- sql中convert及cast转化函数的用法(The use of convert and cast transformation functions in SQL).doc
- sp转型cp分析(SP transformation, CP analysis).doc
- stratco硫酸烷基化工艺技术特点及影响因素分析(Technical characteristics of STRATCO sulfuric acid alkylation process and analysis of its influencing factors).doc
文档评论(0)