第十一章练习:掌握聚合函数、连接与子查询.pdfVIP

  • 0
  • 0
  • 约3.93千字
  • 约 6页
  • 2026-02-03 发布于北京
  • 举报

第十一章练习:掌握聚合函数、连接与子查询.pdf

练习(第十一章):

在本练习中,您将编写一个程序来帮助您理解聚合函数、连接和子查询。

目标完成

此练习后,您将能够:

•理解聚合函数的工作原理•理解如何使用

连接

•理解如何使用子查询

完成此练习的预计时间:70分钟

练习这些练

习了练习第11章所学概念的机会。

练习1您需要

创建一个生成音乐会信息报告的程序(来自YCONCERT表)。为此,请从开发

类YINTRODUCTION中程序YIN015,并将其重命名为YIN015_XX。使用适当

的聚合函数填写选择语句。

该报告应包括表中的条目数、占用座位的总数、最大占用座位数以及平均占用座位

数。使用聚合函数计算这些数量。查看示例输出以确定报告的内容和布局。参考手

册获取。

练习2创建一个新的

名为YIN0016A_XX的程序。理解内连接和外连接的概念将是您ABAP培训的

重要部分。项目通常会discouraged使用嵌套选择和/或逻辑数据库。对于以下所

有练习,您应尽可能使用连接。对于此练习,您应使用表

Exercise(Chapter11):

Inthisexercise,youwillwriteaprogramtohelpyoutounderstandaggreefunctions,

joins,andsubqueries.

Objectives

Aftercompletingthisexercise,youwillbeableto:

•Understandhowaggreefunctionswork

•Understandhowtousejoins

•Understandhowtousesubqueries

Estimatedtimetocompletethisexercise:70minutes

Exercises

TheseexercisesprovidepracticeworkingwiththeconceptslearnedinChapter11.

Exercise1

Youaretocreateaprogramthatgeneratesareportwithconcertinformation(fromthe

YCONCERTtable).Todothis,copyprogramYIN015fromthedevelopmentclass

YINTRODUCTIONasyourownandrenameitYIN015_XX.Fillintheselectstatement

usingtheappropriateaggreefunctions.

Thisreportshouldincludethenumberofentriesinthetable,thesumoftheseats

occupied,theumnumberofseatsoccupied,andtheaveragenumberofseats

occupied.Useaggreefunctionstocalculatetheseamounts.Seethesampleoutputto

determinethecontentsandlayoutofthereport.Refertothemanualfortheanswers.

Exercise2

CreateanewprogramnamedYIN0016A_XX.Understandingtheconceptofinnerand

outerjoinswillbeanim

文档评论(0)

1亿VIP精品文档

相关文档