|
17. What is CE_JOIN_VIEW operator?
It return results for an existing join view (also known as Attribute view). It takes the name of join view and optional list of attributes as parameters. Example:
18. What is CE_OLAP_VIEW operator? It return results for an existing OLAP view (also known as Analytical view). It takes the name of OLAP view and an optional list of key figures and dimensions as parameters. The OLAP view is grouped by dimensions and the key figures are aggregated using the default aggregation of the OLAP view. Example:
Is equivalent to
19. What is CE_CALC_VIEW operator? It returns results for an existing calculation view. It takes the name of the calculation view and optionally a projection list of attribute names. Example:
Is equivalent to
20. What is CE_JOIN operator? It calculates a inner join of the given pair of tables on a list of join attributes. Each pair of join attributes must have identical attribute names else one of them must be renamed prior to the join. Example:
Is equivalent to ot_pubs_books3 = SELECT P.publisher as publisher, name,
street, post_code, city,
21. What is CE_LEFT_OUTER_JOIN operator? It calculates the left outer join. Besides the function name the syntax is same as CE_JOIN. 22. What is CE_RIGHT_OUTER_JOIN operator? It calculates the right outer join. Besides the function name the syntax is same as CE_JOIN. 23. What is CE_PROJECTION operator? It restricts the columns in the table variable and optionally renames columns, computes expression, or applies a filter. Example:
24. What is CE_CALC operator? It evaluates an expression and then bound to a new column Example:
with_tax2 = SELECT cid, cname, oid, sales, sales * :vat_rate
AS sales_vat
All columns used in CE_CALC have to be included in the
projection list. Another frequent use of CE_CALC is computing row numbers.
25.What is CE_AGGREGATION operator? It groups the input and computes aggregates for each group.
Example:
Is equivalent to
26. What is CE_UNION_ALL operator? It computes the union of two tables which need to have identical schemas. Example:
27. What is special operator? CE_VERTICAL_UNION and CE_CONVERSION are the special operators which do not have any immediate SQL equivalent. 28. What operator is used to debug SQLScript procedures? TRACE operaor. It traces the tabular data passed as its argument into a local temporary table and return its input unmodified. The names of the temporary tables can be retrieved from the SYS.SQLSCRIPT_TRACE view. Example: out = TRACE (:input); 29. How to set-up tracing? From the Administration perspective, navigate to tab “Trace Configuration” . In order to change settings, you need to have system privileges “TRACE ADMIN” and “INFILE ADMIN”. 30. What is the difference between BREAK and CONTINUE? Break means loop should stop processing, CONTINUE means loop should stop processing the current iteration and immediately start processing the next iteration. 31. What is Cursor? It is used to fetch single rows from the result set returned by a query. CREATE PROCEDURE cursor_proc LANGUAGE SQLSCRIPT AS
32. How to loop cursor over result sets? Using FOR loop. CREATE PROCEDURE foreach_proc() LANGUAGE SQLSCRIPT AS
|
|
Get help for your SAP HANA problems
SAP HANA
Main Index
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|