- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Conditional FIRST INSERT (continued) The example in the slide inserts rows into more than one table, using one single INSERT statement. The SELECT statement retrieves the details of department ID, total salary, and maximum hire date for every department in the EMPLOYEES table. This INSERT statement is referred to as a conditional FIRST INSERT, as an exception is made for the departments whose total salary is more than $25,000. The condition WHEN ALL 25000 is evaluated first. If the total salary for a department is more than $25,000, then the record is inserted into the SPECIAL_SAL table irrespective of the hire date. If this first WHEN clause evaluates to true, the Oracle Server executes the corresponding INTO clause and skips subsequent WHEN clauses for this row. For the rows that do not satisfy the first WHEN condition (WHEN SAL 25000), the rest of the conditions are evaluated just as a conditional INSERT statement, and the records retrieved by the SELECT statement are inserted into the HIREDATE_HISTORY_00, or HIREDATE_HISTORY_99, or HIREDATE_HISTORY tables, based on the value in the HIREDATE column. The feedback 8 rows created can be interpreted to mean that a total of eight INSERT statements were performed on the base tables SPECIAL_SAL ,HIREDATE_HISTORY_00, HIREDATE_HISTORY_99, and HIREDATE_HISTORY. Instructor Note In order to demonstrate the code example in the slide, you must first run the script files lab\cre_special_sal.sql, lab\cre_hiredate_history_99.sql lab\cre_hiredate_history_00.sql and lab\cre_hiredate_history.sql Pivoting INSERT (continued) In the example in the slide, the sales data is received from the nonrelational database table SALES_SOURCE_DATA, which is the details of the sales performed by a sales representative on each day of a week, for a week with a particular week ID. DESC SALES_SOURCE_DATA Instructor Note In order to demonstrate the code example in the slide, you must first run the script files lab\cre_sales_source_data
您可能关注的文档
- 湖南省护理文书书写规范.doc
- 黄山市地生村.ppt
- 黄生借书说教案定稿.doc
- 黄土高坡课件.ppt
- 黄煦凯-国家安全战略和国防建设 【中华讲师网】.ppt
- 黄煦凯-宏观经济形势分析【中华讲师网】.ppt
- 湖南省耒阳市长坪乡中学语文版七年级语文下册课件:30 是词五首--春望.ppt
- 湖南省耒阳市长坪乡中学语文版七年级语文下册课件:30 是词五首--渡荆门送别.ppt
- 黄煦凯-重庆金融创新—打造金融、经济协调中心【中华讲师网】.pptx
- 黄雪梅:《伶官传序》.ppt
- 第5章51两角和与差及二倍角的三角函数公式.ppt
- 第七单元文学阅读与写作.pptx
- 第4课藏戏课件六年级语文下册系列部编版.pptx
- 第11讲阅读理解细节理解题讲-2023年高考英语一轮复习讲练测全国通用教案.docx
- 第2课时直线与平面平行的性质课件高一数学课件人教A版2019必修第二册.pptx
- 第4课古代诗歌四首次北固山下课件共18张PPT20212022学年部编版语文七年级上册.ppt
- 第4课-希腊城邦和亚历山大帝国精品课件.pptx
- 第一章宇宙中的地球01地球与地图课件-高考地理大一轮单元复习课件与检测新高考专用.pptx
- 第16课中国古代赋税制度的演变课件高中历史选择性必修一.pptx
- 2023-2024学年深圳市高级中学高一(上)期末英语试卷含答案.pdf
最近下载
- 最新国家开放大学电大《公共关系学》机考第二套真题题库及答案.docx VIP
- 2025年广西公需科目第二套答案.docx VIP
- 基于在线评论的用户需求识别及共现分析——以新能源汽车为例.pdf VIP
- PDC钻头工作原理及相关特点.pptx VIP
- 2022-2023学年重庆八中七年级(下)期末数学试卷 (1).doc VIP
- GB50707-2011 河道整治设计规范.docx VIP
- 部编版小学四年级语文上册期末素质试题(含答案).doc VIP
- 2025年清廉学校建设开展情况汇报.docx VIP
- 公共卫生执业医师药理学试题(附答案).docx VIP
- 历久弥新的领导力洞察:BCG《每周简报》五周年特辑.pdf
原创力文档


文档评论(0)