Course announcements

  • In order to maximize the performance of data models and applications running on SAP HANA, it is essential that all data related tasks are programmed at the database level. The language used is SQL and its very special extended variant called SQL Script. This short course covers programming with SQL and SQL Script on the SAP HANA database and includes all key areas for writing efficient declarative and imperative code. You will also be guided on the use of recommended approaches.


  • This course will prepare you to:
    • Push down data intensive tasks to the SAP HANA database using SQL and SQL Script
    • Understand how to code using advanced SQL Script techniques
    • Follow recommended practices for writing optimal SQL and SQL Script
    • Debug and analyze SQL and SQL Script code


  • Application Developer
  • Data Modeler
  • BI / BW Consultant
  • Data Scientist
  • Database Administrator
  • SAP HANA Support Personnel



  • Previous knowledge of ANSI-92 SQL


Course based on software release

  • SAP HANA 2.0 SPS03


  • Getting Started
    • What is SQL and SQL Script?
    • Understanding XS Advanced and HDI
    • Working with Web IDE for SAP HANA
    • Understanding the course data
  • SQL Logic Containers
    • Creating user-defined functions
    • Creating database procedures
    • Trapping errors in SQL Script
    • User defined libraries
  • Declarative Logic
    • Using declarative logic
  • Imperative Logic
    • Using imperative Logic
  • OLAP Operations
    • Using OLAP Analytic features
  • Working with Hierarchies
    • Working with Hierarchies
  • Troubleshooting and Best Practices
    • Tools for troubleshooting
    • Best Practices
  • Appendix: Starting from the beginning with SQL fundamentals.


  • This course assumes students already have a basic knowledge of standard SQL and the focus is on SQL Script. But the course does include excellent and comprehensive coverage of standard SQL in the appendix for those who need to start from the very beginning. The appendix content will not be covered in class and is for offline use only.
  • This course is based on SAP HANA 2.0 and uses Web IDE / XSA but is useful for customers working with SAP HANA 1.0 using Studio / XS

This course is also available as a test system within SAP Live Access

Learn more